68% seo-key

Code Review | SEOKEY - SEO Audit, Optimizations and Tools

WordPress plugin SEOKEY - SEO Audit, Optimizations and Tools scored68%from 54 tests.

About plugin

  • Plugin page: seo-key
  • Plugin version: 1.7.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Nov 9, 2023
  • Number of updates: 78
  • Update frequency: every 31.4 days
  • Top authors: seokey (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

600+ active /9,944 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.88MB] [CPU: ▼0.33ms] Passed 4 tests

This is a short check of server-side resources used by SEOKEY - SEO Audit, Optimizations and Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7740.96 ▲0.42
Dashboard /wp-admin4.25 ▲0.9151.34 ▼5.34
Posts /wp-admin/edit.php4.34 ▲0.9854.91 ▲6.90
Add New Post /wp-admin/post-new.php6.83 ▲0.9496.62 ▼3.30
Media Library /wp-admin/upload.php4.15 ▲0.9246.69 ▲16.64
Redirections /wp-admin/admin.php?page=seo-key-redirections4.1138.19
Dashboard /wp-admin/admin.php?page=seo-key4.1136.61
SEO optimizations /wp-admin/admin.php?page=seo-key-automatic-seo4.1136.87
Wizard /wp-admin/admin.php?page=seo-key-wizard4.1556.75
Help /wp-admin/admin.php?page=seo-key-support4.1237.36
Audit /wp-admin/admin.php?page=seo-key-audit4.1136.75
Settings /wp-admin/admin.php?page=seo-key-settings4.1135.96

Server storage [IO: ▲2.10MB] [DB: ▲0.08MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 3 files (8.33KB) outside of "wp-content/plugins/seo-key/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/seokey-free-muplugin.js
    • (new file) wp-content/mu-plugins/seokey-free-muplugin.css
    • (new file) wp-content/mu-plugins/seokey-free-muplugin.php
Filesystem: 264 new files
Database: 6 new tables, 7 new options
New tables
wp_seokey_redirections
wp_seokey_audit
wp_seokey_gsc_keywords
wp_seokey_keywords
wp_seokey_redirections_bad
wp_seokey_gsc_pages
New WordPress options
widget_recent-posts
widget_recent-comments
seokey_option_current_version
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

SEOKEY - SEO Audit, Optimizations and Tools: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18514.36 ▼0.021.53 ▼0.0135.67 ▼6.29
Dashboard /wp-admin2,307 ▲1295.55 ▼0.1782.02 ▼27.3286.07 ▲41.41
Posts /wp-admin/edit.php2,218 ▲1181.99 ▲0.0538.35 ▼1.2152.56 ▲16.87
Add New Post /wp-admin/post-new.php1,622 ▲8523.06 ▼0.24752.26 ▲134.5254.42 ▼13.18
Media Library /wp-admin/upload.php1,509 ▲1094.18 ▼0.03108.62 ▲10.5385.37 ▲42.74
Redirections /wp-admin/admin.php?page=seo-key-redirections8802.0226.8638.42
Dashboard /wp-admin/admin.php?page=seo-key8622.0327.1736.00
SEO optimizations /wp-admin/admin.php?page=seo-key-automatic-seo8832.0223.0936.21
Wizard /wp-admin/admin.php?page=seo-key-wizard9702.1828.2661.21
Help /wp-admin/admin.php?page=seo-key-support9192.0226.2441.89
Audit /wp-admin/admin.php?page=seo-key-audit8832.0226.8138.60
Settings /wp-admin/admin.php?page=seo-key-settings8872.2325.5235.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 6 tables
    • wp_seokey_redirections_bad
    • wp_seokey_gsc_keywords
    • wp_seokey_audit
    • wp_seokey_gsc_pages
    • wp_seokey_keywords
    • wp_seokey_redirections
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • seokey_option_current_version
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seo-key-redirections
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
Please fix the following items
  • 132× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/seo-key/admin/modules/redirections/form.php
    • > /wp-content/plugins/seo-key/third-party/woocommerce.php
    • > /wp-content/plugins/seo-key/admin/modules/redirections/view_errors.php
    • > /wp-content/plugins/seo-key/admin/modules/keywords/keywords.php
    • > /wp-content/plugins/seo-key/admin/modules/redirections/view.php
    • > /wp-content/plugins/seo-key/admin/modules/search-console/search-console-sql.php
    • > /wp-content/plugins/seo-key/public/modules/login-page.php
    • > /wp-content/plugins/seo-key/admin/modules/redirections/redirections_sql.php
    • > /wp-content/plugins/seo-key/admin/admin-pages/settings/admin-settings-fields-schema-org.php
    • > /wp-content/plugins/seo-key/admin/modules/audit/audit_sql.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The entry point to "SEOKEY - SEO Audit, Optimizations and Tools" version 1.7.4 is a PHP file that has certain tags in its header comment area
117 characters long description:
The Key to WordPress SEO. SEOKEY is a simple and efficient Search Engine Audit and Optimization plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected32,363 lines of code in 207 files:
LanguageFilesBlank linesComment linesLines of code
PHP1541,76610,57918,486
PO File21,9883,4325,670
CSS171,0023564,527
JavaScript232404683,505
JSON800150
SVG20018
Markdown1507

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.71
▷ Minimum class complexity1.00
▷ Maximum class complexity145.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes38
▷ Abstract classes25.26%
▷ Concrete classes3694.74%
▷ Final classes00.00%
Methods321
▷ Static methods144.36%
▷ Public methods27385.05%
▷ Protected methods3510.90%
▷ Private methods134.05%
Functions480
▷ Named functions47999.79%
▷ Anonymous functions10.21%
Constants27
▷ Global constants2592.59%
▷ Class constants27.41%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/picto-fleche-up.png0.96KB0.65KB▼ 32.69%
admin/assets/img/logo-seo-key-blanc.png10.92KB4.37KB▼ 59.96%
admin/assets/img/task-error.png0.32KB0.32KB0.31%
admin/assets/img/picto-info-white.png0.65KB0.53KB▼ 19.70%
admin/assets/img/picto-fleche-down.png1.38KB0.62KB▼ 55.13%