10% seo-x

Code Review | SEOX

WordPress plugin SEOX scored10%from 54 tests.

About plugin

  • Plugin page: seo-x
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Jan 31, 2023
  • Number of updates: 10
  • Update frequency: every 18.3 days
  • Top authors: pluginviser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/seo-x/inc/functions.php+44
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲1.79MB] [CPU: ▲18.55ms] Passed 4 tests

Analyzing server-side resources used by SEOX
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.41 ▲1.9165.64 ▲22.75
Dashboard /wp-admin5.11 ▲1.7771.57 ▲23.32
Posts /wp-admin/edit.php5.25 ▲1.8568.61 ▲19.25
Add New Post /wp-admin/post-new.php7.72 ▲1.79103.31 ▲8.87
Media Library /wp-admin/upload.php5.04 ▲1.7672.00 ▲40.15
General /wp-admin/admin.php?page=seox-dashboard5.0053.27
Redirects /wp-admin/admin.php?page=seox-redirects5.0151.98
Tools /wp-admin/admin.php?page=seox-tools5.0049.31

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 179 new files
Database: 1 new table, 9 new options
New tables
wp_seox_redirects
New WordPress options
seox-dashboard
seox-ihf
seox
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEOX
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲7314.72 ▲0.371.78 ▼0.4741.58 ▲1.63
Dashboard /wp-admin2,248 ▲745.56 ▼0.0891.35 ▼8.2985.91 ▲44.43
Posts /wp-admin/edit.php2,363 ▲2603.65 ▲1.7073.75 ▲37.7754.79 ▲18.00
Add New Post /wp-admin/post-new.php6,570 ▲4,89123.37 ▲1.63976.83 ▲289.5945.70 ▼9.74
Media Library /wp-admin/upload.php1,462 ▲624.19 ▲0.1292.06 ▼6.8086.27 ▲42.53
General /wp-admin/admin.php?page=seox-dashboard8691.7320.9825.96
Redirects /wp-admin/admin.php?page=seox-redirects9962.0424.2023.91
Tools /wp-admin/admin.php?page=seox-tools8712.0124.8728.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_seox_redirects
  • This plugin does not fully uninstall, leaving 9 options in the database
    • db_upgraded
    • can_compress_scripts
    • seox-dashboard
    • theysaidso_admin_options
    • seox-ihf
    • seox
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_unslash() in wp-content/plugins/seo-x/inc/functions.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-x/admin/pages/redirects.php:37
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/seo-x/inc/class-seox-list-table.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'SEOX_PATH/admin/pages/general.php' (include_path='.:/usr/share/php') in wp-content/plugins/seo-x/inc/dashboard.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-x/inc/seox-redirects-functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-x/inc/insert-header-footer.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-x/admin/sitemap/sitemap.php:40
    • > PHP Warning
      require_once(SEOX_PATH/admin/pages/general.php): failed to open stream: No such file or directory in wp-content/plugins/seo-x/inc/dashboard.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-x/inc/class-seox-list-table.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-x/inc/webmaster-tools.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=seox-dashboard
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 3:1808 Uncaught TypeError: Cannot set properties of undefined (setting 'wrap')
    • > GET request to /wp-admin/admin.php?page=seox-dashboard
    • > Javascript (severe) in unknown
    /wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef 1:9103 Uncaught TypeError: Cannot read properties of undefined (reading 'hooks')
    • > GET request to /wp-admin/admin.php?page=seox-dashboard
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=seox-dashboard 189:0 Uncaught ReferenceError: wp is not defined
    • > GET request to /wp-admin/admin.php?page=seox-dashboard
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:61 Uncaught ReferenceError: wp is not defined

Optimizations

Plugin configuration 90% 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:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in seo-x/assets to your readme.txt
You can look at the official readme.txt

seo-x/seox.php 85% from 13 tests

The main PHP script in "SEOX" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("seo-x.php" instead of "seox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected41,513 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP1033,9442,28917,767
JavaScript61,2954946,555
PO File203,1983,5916,500
Sass1696935,667
CSS54075194,974
SVG30129
JSON10021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity26.36
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.83
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods352
▷ Static methods4312.22%
▷ Public methods31689.77%
▷ Protected methods61.70%
▷ Private methods308.52%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%