88% shopp-admin-extras

Code Review | Shopp Admin Extras

WordPress plugin Shopp Admin Extras scored 88% from 54 tests.

About plugin

  • Plugin page: shopp-admin-extras
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Apr 18, 2015
  • Latest release: Sep 23, 2016
  • Number of updates: 13
  • Update frequency: every 40.4 days
  • Top authors: crunnells (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 767 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Shopp Admin Extras
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.51 ▲10.82
Dashboard /wp-admin3.09 ▲0.0354.55 ▲20.58
Posts /wp-admin/edit.php3.14 ▲0.0345.93 ▲5.48
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.37 ▼685.11
Media Library /wp-admin/upload.php3.03 ▲0.0232.97 ▼8.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Shopp Admin Extras
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.75 ▼0.128.12 ▲0.7546.20 ▼0.28
Dashboard /wp-admin2,970 ▲395.88 ▼0.25137.72 ▼6.65112.74 ▲0.12
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0063.97 ▼0.9088.91 ▼6.84
Add New Post /wp-admin/post-new.php1,683 ▲7718.74 ▼0.10350.35 ▼23.88109.26 ▼0.59
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.01149.22 ▲2.75115.00 ▼12.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shopp-admin-extras/shopp-admin-extras.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ShoppAdminController' not found in wp-content/plugins/shopp-admin-extras/inc/admin.php:3
    • > PHP Notice
      Undefined variable: status_message in wp-content/plugins/shopp-admin-extras/inc/adminui.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shopp_admin_screen_tabs() in wp-content/plugins/shopp-admin-extras/inc/adminui.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: shopp, e-commerce

shopp-admin-extras/shopp-admin-extras.php 92% from 13 tests

The main PHP file in "Shopp Admin Extras" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)

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
Everything looks great! No dangerous files found in this plugin236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39133236

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.50
▷ Minimum class complexity6.00
▷ Maximum class complexity17.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods1694.12%
▷ Protected methods15.88%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin