77% seo-checklist

Code Review | WordPress SEO Checklist

WordPress plugin WordPress SEO Checklist scored 77% from 54 tests.

About plugin

  • Plugin page: seo-checklist
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Jul 4, 2019
  • Latest release: Jul 28, 2019
  • Number of updates: 9
  • Update frequency: every 2.8 days
  • Top authors: flexithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 798 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
Installer ran successfully

Server metrics [RAM: ▲4.31MB] [CPU: ▼288.69ms] 75% from 4 tests

Server-side resources used by WordPress SEO Checklist
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,412.28ms on /wp-admin/tools.php?page=seo_checklist)
PageMemory (MB)CPU Time (ms)
Home /8.14 ▲4.6275.28 ▲23.87
Dashboard /wp-admin8.15 ▲4.7557.14 ▲22.46
Posts /wp-admin/edit.php8.16 ▲4.5256.57 ▲7.18
Add New Post /wp-admin/post-new.php10.37 ▲3.37111.42 ▼1,204.18
Media Library /wp-admin/upload.php8.15 ▲4.8645.96 ▲19.80
SEO Checklist /wp-admin/tools.php?page=seo_checklist8.161,412.28
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius8.1645.36

Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 186 new files
Database: no new tables, 5 new options
New WordPress options
fs_api_cache
fs_debug_mode
fs_gdpr
fs_accounts
fs_active_plugins

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress SEO Checklist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,838 ▲11615.69 ▼0.275.80 ▼1.462.51 ▲0.32
Dashboard /wp-admin2,935 ▲756.20 ▲0.01116.91 ▼15.23172.95 ▲19.32
Posts /wp-admin/edit.php2,731 ▲403.24 ▲0.0065.57 ▼0.81155.26 ▲14.93
Add New Post /wp-admin/post-new.php1,653 ▼3716.51 ▼4.11468.58 ▲12.25148.61 ▼15.87
Media Library /wp-admin/upload.php1,738 ▲405.64 ▲0.15148.68 ▲4.48219.42 ▲36.16
SEO Checklist /wp-admin/tools.php?page=seo_checklist1,2582.6256.09162.44
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius1,4752.5357.81132.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 5 options in the database
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins
    • fs_api_cache
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seo-checklist/freemius/templates/ajax-loader.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/seo-checklist/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/seo-checklist/freemius/templates/account/partials/addon.php on line 7
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/seo-checklist/includes/class-seo-checks.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/seo-checklist/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/seo-checklist/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/seo-checklist/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/seo-checklist/freemius/templates/account/partials/addon.php on line 6
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-checklist/includes/class-seo-checks.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/seo-checklist/includes/class-seo-checks.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-checklist/includes/class-seo-checks.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

seo-checklist/seo-checklist.php Passed 13 tests

The principal PHP file in "WordPress SEO Checklist" v. 1.0.2 is loaded by WordPress automatically on each request
77 characters long description:
The Ultimate Wordpress SEO Checklist! Use it from the Tools menu on the left.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected42,014 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
PHP1156,88315,82328,684
PO File105,7106,91312,558
JavaScript45892337
CSS11340216
Markdown1610192
JSON10027

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity73.08
▷ Minimum class complexity1.00
▷ Maximum class complexity2,609.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,123
▷ Static methods19117.01%
▷ Public methods78870.17%
▷ Protected methods151.34%
▷ Private methods32028.50%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants120
▷ Global constants9780.83%
▷ Class constants2319.17%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/seo_checklist.png13.42KB4.98KB▼ 62.89%