83% woocommerce-all-in-one-seo-pack

Code Review | All In One SEO Pack for WooCommerce

WordPress plugin All In One SEO Pack for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-all-i...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2011
  • Latest release: Sep 5, 2023
  • Number of updates: 24
  • Update frequency: every 180.1 days
  • Top authors: visser (91.67%)jkohlbach (12.5%)

Code review

54 tests

User reviews

13 reviews

Install metrics

6,000+ active /280,544 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.39ms] Passed 4 tests

This is a short check of server-side resources used by All In One SEO Pack for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.75 ▲4.78
Dashboard /wp-admin3.83 ▲0.5356.65 ▲1.16
Posts /wp-admin/edit.php3.38 ▲0.0348.88 ▼2.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.74 ▼1.17
Media Library /wp-admin/upload.php3.25 ▲0.0340.10 ▲3.79

Server storage [IO: ▲0.03MB] [DB: ▲0.05MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/woocommerce-all-in-one-seo-pack/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

All In One SEO Pack for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16913.25 ▼1.061.74 ▼0.0139.95 ▼3.19
Dashboard /wp-admin2,336 ▲1304.87 ▲0.01103.78 ▼6.1741.41 ▼1.62
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0336.28 ▼1.6735.62 ▲0.95
Add New Post /wp-admin/post-new.php1,545 ▼018.14 ▼5.11629.90 ▲2.1574.35 ▲19.68
Media Library /wp-admin/upload.php1,394 ▲34.18 ▲0.0297.36 ▼4.9245.29 ▼0.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-all-in-one-seo-pack/includes/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-all-in-one-seo-pack/includes/common-dashboard_widgets.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-all-in-one-seo-pack/includes/common.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-all-in-one-seo-pack/templates/admin/woo-admin_ai_aioseop.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce product seo, aioseo, all in one seo pack, woocommerce seo

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

The entry point to "All In One SEO Pack for WooCommerce" version 1.3.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-all-in-one-seo-pack.php" instead of "all-in-one-seo-pack.php")
  • Requires at least: Required version must match the one declared in readme.txt ("2.9.2" instead of "2.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin211 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66033179
PO File1101032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin