55% all-in-one-seo-pack

Code Review | All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic

WordPress plugin All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic scored55%from 54 tests.

About plugin

  • Plugin page: all-in-one-seo-pack
  • Plugin version: 4.5.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2007
  • Latest release: Nov 24, 2023
  • Number of updates: 1,304
  • Update frequency: every 4.7 days
  • Top authors: hallsofmontezuma (36.43%)uberdose (35.35%)benjaminprojas (11.96%)pbaylies (7.9%)arnaudbroes (4.83%)

Code review

54 tests

User reviews

3812 reviews

Install metrics

3,000,000+ active /133,123,189 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲10.93MB] [CPU: ▲94.72ms] 50% from 4 tests

A check of server-side resources used by All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic
The following require your attention
  • RAM: You should keep total memory usage under 10MB (currently 14.45MB on /wp-admin/admin.php?page=aioseo-tools)
  • Extra RAM: The extra memory usage must be under 5MB (currently 10.93MB on /wp-admin/admin.php?page=aioseo-tools)
Page Memory (MB) CPU Time (ms)
Home / 13.36 ▲9.90 111.91 ▲71.40
Dashboard /wp-admin 14.43 ▲11.12 146.21 ▲97.35
Posts /wp-admin/edit.php 25.13 ▲21.78 173.43 ▲123.14
Add New Post /wp-admin/post-new.php 17.55 ▲11.66 210.02 ▲110.02
Media Library /wp-admin/upload.php 14.28 ▲11.05 135.58 ▲100.11
Analytics /wp-admin/admin.php?page=aioseo-monsterinsights 14.37 127.53
Search Statistics NEW! /wp-admin/admin.php?page=aioseo-search-statistics 14.31 122.75
About Us /wp-admin/admin.php?page=aioseo-about 14.37 118.52
SEO Analysis /wp-admin/admin.php?page=aioseo-seo-analysis 14.38 121.41
Link Assistant /wp-admin/admin.php?page=aioseo-link-assistant 14.38 115.28
Dashboard /wp-admin/admin.php?page=aioseo 14.30 114.57
General Settings /wp-admin/admin.php?page=aioseo-settings 14.38 159.72
Sitemaps /wp-admin/admin.php?page=aioseo-sitemaps 14.23 161.91
SEO Revisions /wp-admin/admin.php?page=aioseo-seo-revisions 14.37 117.55
Tools /wp-admin/admin.php?page=aioseo-tools 14.45 128.70

Server storage [IO: ▲13.17MB] [DB: ▲0.45MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 979 new files
Database: 7 new tables, 17 new options
New tables
wp_aioseo_notifications
wp_actionscheduler_groups
wp_actionscheduler_logs
wp_aioseo_cache
wp_actionscheduler_actions
wp_aioseo_posts
wp_actionscheduler_claims
New WordPress options
aioseo_options_internal
aioseo_options_dynamic
action_scheduler_hybrid_store_demarkation
schema-ActionScheduler_StoreSchema
theysaidso_admin_options
aioseo_options_dynamic_localized
action_scheduler_lock_async-request-runner
aioseo_options
widget_recent-comments
aioseo_options_internal_lite
...

Browser metrics Passed 4 tests

A check of browser resources used by All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic
There were no issues detected in relation to browser resource usage
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 3,884 ▲1,122 18.51 ▲4.19 26.21 ▲24.41 58.51 ▲12.82
Dashboard /wp-admin 3,086 ▲906 7.75 ▲2.11 150.91 ▲61.71 71.81 ▲29.60
Posts /wp-admin/edit.php 2,550 ▲450 6.38 ▲4.43 93.36 ▲52.87 88.49 ▲47.50
Add New Post /wp-admin/post-new.php 4,673 ▲3,147 28.84 ▲5.81 936.12 ▲283.12 61.76 ▲2.47
Media Library /wp-admin/upload.php 1,693 ▲290 7.62 ▲3.43 135.91 ▲33.95 55.84 ▲10.99
Analytics /wp-admin/admin.php?page=aioseo-monsterinsights 2,049 6.10 77.82 82.75
Search Statistics NEW! /wp-admin/admin.php?page=aioseo-search-statistics 4,281 12.55 224.18 124.75
About Us /wp-admin/admin.php?page=aioseo-about 2,882 6.11 90.85 71.74
SEO Analysis /wp-admin/admin.php?page=aioseo-seo-analysis 2,340 6.85 86.11 64.98
Link Assistant /wp-admin/admin.php?page=aioseo-link-assistant 2,777 6.25 97.39 112.67
Dashboard /wp-admin/admin.php?page=aioseo 3,433 13.35 373.12 112.20
General Settings /wp-admin/admin.php?page=aioseo-settings 2,753 13.83 351.14 106.39
Sitemaps /wp-admin/admin.php?page=aioseo-sitemaps 2,938 7.72 103.62 60.98
SEO Revisions /wp-admin/admin.php?page=aioseo-seo-revisions 1,419 4.86 73.07 81.53
Tools /wp-admin/admin.php?page=aioseo-tools 4,130 8.95 107.53 67.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.47MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 7 tables in the database
    • wp_actionscheduler_groups
    • wp_aioseo_cache
    • wp_aioseo_notifications
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_aioseo_posts
  • This plugin did not uninstall successfully, leaving 18 options in the database
    • action_scheduler_hybrid_store_demarkation
    • action_scheduler_lock_async-request-runner
    • schema-ActionScheduler_LoggerSchema
    • aioseo_dynamic_settings_backup
    • can_compress_scripts
    • aioseo_options_lite
    • widget_theysaidso_widget
    • aioseo_options_internal
    • widget_recent-posts
    • theysaidso_admin_options
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aioseo-about
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/lib/PHPInsight/data/data.neu.php
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/examples/demo.php
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/lib/PHPInsight/data/data.ign.php
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/lib/PHPInsight/data/data.prefix.php
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/lib/PHPInsight/data/data.neg.php
    • > /wp-content/plugins/all-in-one-seo-pack/vendor/jwhennessey/phpinsight/lib/PHPInsight/data/data.pos.php
  • 129× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'AIOSEO\\Vendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'AIOSEO\\Vendor\\Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/all-in-one-seo-pack/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=aioseo-tools
    • > Deprecation (warning) in unknown
    /wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Editor.981fd5ea.js 25 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (SEO Content Analyzer (Gutenberg))
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

all-in-one-seo-pack/all_in_one_seo_pack.php 85% from 13 tests

This is the main PHP file of "All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic" version 4.5.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("all-in-one-seo-pack.php" instead of "all_in_one_seo_pack.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin70,950 lines of code in 938 files:
Language Files Blank lines Comment lines Lines of code
PHP 490 11,426 43,371 68,293
JavaScript 290 143 79 1,186
HTML 1 10 2 824
JSON 4 1 0 356
CSS 142 0 5 142
Markdown 3 40 0 97
SVG 7 0 0 34
XML 1 1 0 18

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 117)
Cyclomatic complexity
Average complexity per logical line of code 0.49
Average class complexity 18.60
▷ Minimum class complexity 1.00
▷ Maximum class complexity 197.00
Average method complexity 3.66
▷ Minimum method complexity 1.00
▷ Maximum method complexity 117.00
Code structure
Namespaces 61
Interfaces 12
Traits 28
Classes 394
▷ Abstract classes 32 8.12%
▷ Concrete classes 362 91.88%
▷ Final classes 1 0.28%
Methods 2,890
▷ Static methods 240 8.30%
▷ Public methods 2,071 71.66%
▷ Protected methods 403 13.94%
▷ Private methods 416 14.39%
Functions 96
▷ Named functions 29 30.21%
▷ Anonymous functions 67 69.79%
Constants 95
▷ Global constants 4 4.21%
▷ Class constants 91 95.79%
▷ Public constants 91 100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant
File Size - original Size - compressed Savings
dist/Lite/assets/images/if.4735a5da.png 4.53KB 4.68KB 0.00%
dist/Lite/assets/images/dannie-detective.f19b97eb.png 12.53KB 13.13KB 0.00%
dist/Lite/assets/images/rank-math-seo-logo-small.ca2c09ed.png 0.70KB 0.72KB 0.00%
dist/Lite/assets/images/mi-graph-preview.332630b7.png 31.69KB 32.71KB 0.00%
dist/Lite/assets/images/em-graph-preview.4277e799.png 20.22KB 20.69KB 0.00%