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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.51 ▲10.82 |
Dashboard /wp-admin | 3.09 ▲0.03 | 54.55 ▲20.58 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 45.93 ▲5.48 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 91.37 ▼685.11 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲97 | 15.75 ▼0.12 | 8.12 ▲0.75 | 46.20 ▼0.28 |
Dashboard /wp-admin | 2,970 ▲39 | 5.88 ▼0.25 | 137.72 ▼6.65 | 112.74 ▲0.12 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 63.97 ▼0.90 | 88.91 ▼6.84 |
Add New Post /wp-admin/post-new.php | 1,683 ▲77 | 18.74 ▼0.10 | 350.35 ▼23.88 | 109.26 ▼0.59 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.01 | 149.22 ▲2.75 | 115.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 33 | 236 |
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 code | 0.17 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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