10% shopp-seo

Code Review | Shopp SEO

WordPress plugin Shopp SEO scored 10% from 54 tests.

About plugin

  • Plugin page: shopp-seo
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Sep 15, 2016
  • Number of updates: 33
  • Update frequency: every 22.0 days
  • Top authors: mainehost (84.85%)godthor (18.18%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,286 total downloads

Benchmarks

Plugin footprint 58% 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
  • This plugin did not install gracefully
    • > User error in wp-content/plugins/shopp-seo/sseo.php+147
    Shopp is not installed or active. Shopp SEO will not function until Shopp is installed and activated.WordPress SEO by Yoast is not installed or active. Shopp SEO will not function until WordPress SEO by Yoast is installed and activated.

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.04ms] Passed 4 tests

An overview of server-side resources used by Shopp SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.93 ▼4.14
Dashboard /wp-admin3.36 ▲0.0645.77 ▼5.94
Posts /wp-admin/edit.php3.48 ▲0.1246.46 ▼4.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.00 ▲6.70
Media Library /wp-admin/upload.php3.29 ▲0.0639.26 ▲7.31
Shopp SEO /wp-admin/options-general.php?page=shopp-seo3.2731.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shopp SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.27 ▼1.161.61 ▼0.1438.56 ▼13.44
Dashboard /wp-admin2,219 ▲344.88 ▲0.03108.48 ▼8.2343.97 ▲1.36
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0140.65 ▲2.4636.38 ▲2.49
Add New Post /wp-admin/post-new.php1,531 ▲1723.42 ▲5.94669.77 ▼39.0157.85 ▼5.54
Media Library /wp-admin/upload.php1,401 ▲134.34 ▲0.11100.96 ▼5.4341.33 ▼2.85
Shopp SEO /wp-admin/options-general.php?page=shopp-seo1,3891.7327.7830.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=shopp-seo
    • > Notice in wp-content/plugins/shopp-seo/sseo_admin.php+102
    Undefined variable: mode

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 register_activation_hook() in wp-content/plugins/shopp-seo/sseo.php:71
    • > PHP Fatal error
      Uncaught Error: Class 'shopp_seo_mhs' not found in wp-content/plugins/shopp-seo/sseo_admin.php:4

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: shopp, wordpress seo, seo

shopp-seo/sseo.php 92% from 13 tests

The principal PHP file in "Shopp SEO" v. 1.1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shopp-seo.php" instead of "sseo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin344 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP245119304
JavaScript14040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity22.00
▷ Minimum class complexity8.00
▷ Maximum class complexity36.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/seoe_icon.png40.00KB19.12KB▼ 52.20%