83% shopp-seo-glue

Code Review | Shopp SEO Glue

WordPress plugin Shopp SEO Glue scored83%from 54 tests.

About plugin

  • Plugin page: shopp-seo-glue
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8
  • WordPress version: 6.3.1
  • First release: Jul 20, 2012
  • Latest release: May 14, 2014
  • Number of updates: 35
  • Update frequency: every 18.9 days
  • Top authors: WebsiteBakery (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /9,010 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.32ms] Passed 4 tests

This is a short check of server-side resources used by Shopp SEO Glue
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.70 ▲0.09
Dashboard /wp-admin3.34 ▼0.0047.37 ▼14.73
Posts /wp-admin/edit.php3.46 ▲0.1051.58 ▼4.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.30 ▼24.26
Media Library /wp-admin/upload.php3.26 ▲0.0437.31 ▼1.67

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/shopp-seo-glue/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shopp SEO Glue
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.74 ▲0.431.77 ▼0.1345.60 ▲3.06
Dashboard /wp-admin2,221 ▲185.85 ▼0.03108.55 ▲4.4639.75 ▼2.98
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0338.89 ▼0.1933.28 ▼5.01
Add New Post /wp-admin/post-new.php1,531 ▲12223.44 ▲5.36677.99 ▲97.1468.63 ▲24.85
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.05108.57 ▼5.3646.87 ▼3.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopp-seo-glue/shoppseoglue.php:443
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shopp_admin_screen_tabs() in wp-content/plugins/shopp-seo-glue/inc/adminpage.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === shopp-seo-glue === )
You can take inspiration from this readme.txt

shopp-seo-glue/shoppseoglue.php 92% from 13 tests

The main PHP script in "Shopp SEO Glue" version 1.6 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shopp-seo-glue.php" instead of "shoppseoglue.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected258 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP399229246
JavaScript12712

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.50
▷ Minimum class complexity11.00
▷ Maximum class complexity32.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods1957.58%
▷ Protected methods1442.42%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin