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

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)
PageMemory (MB)CPU Time (ms)
Home /13.36 ▲9.90111.91 ▲71.40
Dashboard /wp-admin14.43 ▲11.12146.21 ▲97.35
Posts /wp-admin/edit.php25.13 ▲21.78173.43 ▲123.14
Add New Post /wp-admin/post-new.php17.55 ▲11.66210.02 ▲110.02
Media Library /wp-admin/upload.php14.28 ▲11.05135.58 ▲100.11
Analytics /wp-admin/admin.php?page=aioseo-monsterinsights14.37127.53
Search Statistics NEW! /wp-admin/admin.php?page=aioseo-search-statistics14.31122.75
About Us /wp-admin/admin.php?page=aioseo-about14.37118.52
SEO Analysis /wp-admin/admin.php?page=aioseo-seo-analysis14.38121.41
Link Assistant /wp-admin/admin.php?page=aioseo-link-assistant14.38115.28
Dashboard /wp-admin/admin.php?page=aioseo14.30114.57
General Settings /wp-admin/admin.php?page=aioseo-settings14.38159.72
Sitemaps /wp-admin/admin.php?page=aioseo-sitemaps14.23161.91
SEO Revisions /wp-admin/admin.php?page=aioseo-seo-revisions14.37117.55
Tools /wp-admin/admin.php?page=aioseo-tools14.45128.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,884 ▲1,12218.51 ▲4.1926.21 ▲24.4158.51 ▲12.82
Dashboard /wp-admin3,086 ▲9067.75 ▲2.11150.91 ▲61.7171.81 ▲29.60
Posts /wp-admin/edit.php2,550 ▲4506.38 ▲4.4393.36 ▲52.8788.49 ▲47.50
Add New Post /wp-admin/post-new.php4,673 ▲3,14728.84 ▲5.81936.12 ▲283.1261.76 ▲2.47
Media Library /wp-admin/upload.php1,693 ▲2907.62 ▲3.43135.91 ▲33.9555.84 ▲10.99
Analytics /wp-admin/admin.php?page=aioseo-monsterinsights2,0496.1077.8282.75
Search Statistics NEW! /wp-admin/admin.php?page=aioseo-search-statistics4,28112.55224.18124.75
About Us /wp-admin/admin.php?page=aioseo-about2,8826.1190.8571.74
SEO Analysis /wp-admin/admin.php?page=aioseo-seo-analysis2,3406.8586.1164.98
Link Assistant /wp-admin/admin.php?page=aioseo-link-assistant2,7776.2597.39112.67
Dashboard /wp-admin/admin.php?page=aioseo3,43313.35373.12112.20
General Settings /wp-admin/admin.php?page=aioseo-settings2,75313.83351.14106.39
Sitemaps /wp-admin/admin.php?page=aioseo-sitemaps2,9387.72103.6260.98
SEO Revisions /wp-admin/admin.php?page=aioseo-seo-revisions1,4194.8673.0781.53
Tools /wp-admin/admin.php?page=aioseo-tools4,1308.95107.5367.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:
LanguageFilesBlank linesComment linesLines of code
PHP49011,42643,37168,293
JavaScript290143791,186
HTML1102824
JSON410356
CSS14205142
Markdown340097
SVG70034
XML11018

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 code0.49
Average class complexity18.60
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity117.00
Code structure
Namespaces61
Interfaces12
Traits28
Classes394
▷ Abstract classes328.12%
▷ Concrete classes36291.88%
▷ Final classes10.28%
Methods2,890
▷ Static methods2408.30%
▷ Public methods2,07171.66%
▷ Protected methods40313.94%
▷ Private methods41614.39%
Functions96
▷ Named functions2930.21%
▷ Anonymous functions6769.79%
Constants95
▷ Global constants44.21%
▷ Class constants9195.79%
▷ Public constants91100.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
FileSize - originalSize - compressedSavings
dist/Lite/assets/images/if.4735a5da.png4.53KB4.68KB0.00%
dist/Lite/assets/images/dannie-detective.f19b97eb.png12.53KB13.13KB0.00%
dist/Lite/assets/images/rank-math-seo-logo-small.ca2c09ed.png0.70KB0.72KB0.00%
dist/Lite/assets/images/mi-graph-preview.332630b7.png31.69KB32.71KB0.00%
dist/Lite/assets/images/em-graph-preview.4277e799.png20.22KB20.69KB0.00%