74% off-page-seo

Code Review | Off Page SEO

WordPress plugin Off Page SEO scored74%from 54 tests.

About plugin

  • Plugin page: off-page-seo
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: Oct 28, 2021
  • Number of updates: 63
  • Update frequency: every 38.9 days
  • Top authors: proka (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /11,733 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.02MB] [CPU: ▲4.30ms] Passed 4 tests

A check of server-side resources used by Off Page SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.49 ▲1.0348.17 ▲7.17
Dashboard /wp-admin4.33 ▲1.0356.30 ▲5.86
Posts /wp-admin/edit.php4.38 ▲1.0252.00 ▲2.88
Add New Post /wp-admin/post-new.php6.91 ▲1.0290.96 ▲1.70
Media Library /wp-admin/upload.php4.26 ▲1.0239.13 ▲6.75
Tools /wp-admin/admin.php?page=ops_tools4.2336.96
Search Console /wp-admin/admin.php?page=ops_search_console4.2336.63
Backlinks /wp-admin/admin.php?page=ops_backlinks4.2544.53
Premium /wp-admin/admin.php?page=ops_premium4.2338.13
Off Page SEO /wp-admin/admin.php?page=ops4.3140.65
Settings /wp-admin/admin.php?page=ops_settings5.1045.16

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 841 new files
Database: 1 new table, 6 new options
New tables
wp_ops_rankings
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Off Page SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14914.81 ▲0.172.07 ▲0.1442.20 ▲2.38
Dashboard /wp-admin2,252 ▲605.83 ▲0.7597.22 ▼9.8538.39 ▼3.41
Posts /wp-admin/edit.php2,141 ▲522.06 ▲0.0935.38 ▼4.2631.31 ▼3.46
Add New Post /wp-admin/post-new.php1,576 ▲5423.05 ▼0.29671.64 ▲5.6759.61 ▲4.80
Media Library /wp-admin/upload.php1,434 ▲494.19 ▼0.00101.93 ▼4.0042.67 ▼1.81
Tools /wp-admin/admin.php?page=ops_tools9901.8731.1428.80
Search Console /wp-admin/admin.php?page=ops_search_console9611.8426.7625.86
Backlinks /wp-admin/admin.php?page=ops_backlinks1,3902.4138.5133.54
Premium /wp-admin/admin.php?page=ops_premium1,2322.1734.5356.08
Off Page SEO /wp-admin/admin.php?page=ops1,0281.8428.2128.37
Settings /wp-admin/admin.php?page=ops_settings4,2642.2245.2938.61

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 plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ops_rankings
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 407× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp256r1' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/prime256v1.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Warning
      Class 'Google\\Task\\Retryable' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/google/apiclient/src/aliases.php on line 33
    • > PHP Fatal error
      Trait 'Google\\Auth\\CacheTrait' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/google/auth/src/GCECache.php on line 38
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\Common\\FiniteField' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/off-page-seo/templates/part-popup.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect233r1' not found in wp-content/plugins/off-page-seo/lib/third-party/google/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistb233.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

off-page-seo/off-page-seo.php Passed 13 tests

"Off Page SEO" version 3.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Provides various tools to help you with the off-page SEO.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected84,178 lines of code in 808 files:
LanguageFilesBlank linesComment linesLines of code
PHP72012,96840,39462,233
CSS40277,461
LESS51,931156,663
Markdown281,70205,048
JSON21001,786
JavaScript215741715
YAML6241121
Python1222572
XML30041
SVG160026
make1409
Bourne Shell1203

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.44
▷ Minimum class complexity1.00
▷ Maximum class complexity657.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces75
Interfaces42
Traits14
Classes658
▷ Abstract classes21532.67%
▷ Concrete classes44367.33%
▷ Final classes398.80%
Methods3,605
▷ Static methods64417.86%
▷ Public methods2,73175.76%
▷ Protected methods40311.18%
▷ Private methods47113.07%
Functions205
▷ Named functions7134.63%
▷ Anonymous functions13465.37%
Constants510
▷ Global constants356.86%
▷ Class constants47593.14%
▷ Public constants45595.79%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png13.63KB3.79KB▼ 72.19%
img/mascot.png34.81KB16.32KB▼ 53.10%