77% outpace-seo

Code Review | Outpace SEO

WordPress plugin Outpace SEO scored77%from 54 tests.

About plugin

  • Plugin page: outpace-seo
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 1, 2022
  • Latest release: Oct 12, 2022
  • Number of updates: 9
  • Update frequency: every 11.6 days
  • Top authors: outpaceseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.52MB] [CPU: ▼1.80ms] Passed 4 tests

An overview of server-side resources used by Outpace SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.99 ▲1.5359.63 ▲17.09
Dashboard /wp-admin4.83 ▲1.4964.76 ▼2.80
Posts /wp-admin/edit.php4.88 ▲1.5357.27 ▲0.70
Add New Post /wp-admin/post-new.php7.44 ▲1.5696.94 ▼15.53
Media Library /wp-admin/upload.php4.75 ▲1.5353.06 ▲10.45
Outpace SEO /wp-admin/admin.php?page=outpaceseo4.6644.60
Outpace Schema /wp-admin/edit.php?post_type=outpaceseo_schema4.8049.02
Outpace Script /wp-admin/edit.php?post_type=outpaceseo_script4.7945.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 506 new files
Database: no new tables, 8 new options
New WordPress options
op_rules
outpaceseo_bulk_counter
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Outpace SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11913.28 ▼1.074.68 ▲3.0141.64 ▼2.27
Dashboard /wp-admin2,260 ▲835.87 ▲0.1996.11 ▼3.5641.05 ▼2.17
Posts /wp-admin/edit.php2,168 ▲652.53 ▲0.5741.80 ▼0.3032.27 ▼6.51
Add New Post /wp-admin/post-new.php6,445 ▲4,91919.08 ▼4.29917.67 ▲251.1246.05 ▼2.12
Media Library /wp-admin/upload.php1,472 ▲754.69 ▲0.47110.00 ▲5.6744.78 ▼3.64
Outpace SEO /wp-admin/admin.php?page=outpaceseo1,0822.9548.7738.68
Outpace Schema /wp-admin/edit.php?post_type=outpaceseo_schema1,1862.8741.0927.64
Outpace Script /wp-admin/edit.php?post_type=outpaceseo_script1,1422.4941.7429.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • outpaceseo_bulk_counter
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • op_rules
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/outpace-seo/includes/class-outpace-seo-schema-markup.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outpace-seo/includes/class-outpace-seo-schema.php:80
    • > PHP Fatal error
      Uncaught Error: Class 'Outpace\\Lib\\Controller' not found in wp-content/plugins/outpace-seo/includes/class-outpace-seo-show-sitemap.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Outpace\\Lib\\Controller' not found in wp-content/plugins/outpace-seo/includes/class-outpace-seo-sitemap.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/outpace-seo/includes/views/outpace-html-sitemap.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outpace-seo/includes/class-outpace-seo-target-rule-field.php:80

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=outpaceseo_script
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of undefined (setting '_gotoToday')" "TypeError: Cannot set properties of undefined (setting '_gotoToday')\n at Object.init_date_time_fields (/wp-content/plugins/outpace-seo/assets/js/outpaceseo-schema.js?ver=1.3.1:487:31)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/outpace-seo/assets/js/outpaceseo-schema.js?ver=1.3.1:511:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=outpaceseo_script
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).select2 is not a function" "TypeError: $(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/outpace-seo/assets/js/outpaceseo-schema.js?ver=1.3.1:22:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=outpaceseo_script
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot set properties of undefined (setting '_gotoToday')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=outpaceseo_script
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).select2 is not a function
    • > GET request to /wp-admin/admin.php?page=outpaceseo
    • > Javascript (severe) in unknown
    /wp-content/plugins/outpace-seo/assets/js/ace/ace.js?ver=1.3.1 18862:18 Uncaught Error: ace.edit can't find div #codeAce

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in outpace-seo/assets to your readme.txt
You can look at the official readme.txt

outpace-seo/outpaceseo.php 85% from 13 tests

The main file in "Outpace SEO" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("outpace-seo.php" instead of "outpaceseo.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin287,559 lines of code in 502 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45311,62831,231276,820
PHP431,3681,5209,769
CSS620314970

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 280)
Cyclomatic complexity
Average complexity per logical line of code0.78
Average class complexity56.76
▷ Minimum class complexity1.00
▷ Maximum class complexity280.00
Average method complexity10.46
▷ Minimum method complexity1.00
▷ Maximum method complexity280.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes25.88%
Methods199
▷ Static methods8442.21%
▷ Public methods19597.99%
▷ Protected methods00.00%
▷ Private methods42.01%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/outpaceseo.png42.15KB0.00KB▼ 100.00%