Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php+46
Accessing static property Shopp_CampaignMonitor::$list_id as non static
Server metrics [RAM: ▼1.89MB] [CPU: ▼195.14ms] Passed 4 tests
An overview of server-side resources used by Shopp + Campaign Monitor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.37 ▼24.80 |
Dashboard /wp-admin | 1.76 ▼1.29 | 8.53 ▼35.58 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 7.08 ▼38.79 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 6.13 ▼675.41 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.80 ▼30.77 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shopp + Campaign Monitor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲76 | 15.96 ▲0.08 | 11.90 ▲1.89 | 49.86 ▼1.03 |
Dashboard /wp-admin | 2,975 ▲44 | 5.89 ▼0.07 | 143.68 ▼13.52 | 110.72 ▼6.57 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.00 | 72.34 ▲2.10 | 93.78 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,685 ▲2 | 18.71 ▲0.41 | 416.84 ▲37.54 | 119.41 ▲4.85 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.02 ▼0.02 | 167.60 ▲15.68 | 124.07 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php+46
Accessing static property Shopp_CampaignMonitor::$list_id as non static
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-campaign-monitor/shopp-campaign-monitor.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The Shopp + Campaign Monitor WordPress admin page.), #2 (An additional view of the Shopp + Campaign Monitor WordPress admin page.)
- Tags: There are too many tags (12 tag instead of maximum 10)
shopp-campaign-monitor/shopp-campaign-monitor.php 92% from 13 tests
The primary PHP file in "Shopp + Campaign Monitor" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/shopp-campaign-monitor/inc/class/GoDaddyClass2CA.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 309 | 557 | 1,154 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 1 | 1.52% |
▷ Public methods | 66 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.34MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 132.97KB | 47.13KB | ▼ 64.56% |
images/shopp-email-marketing-opt-in.png | 25.97KB | 7.39KB | ▼ 71.54% |
screenshot-2.png | 191.81KB | 66.17KB | ▼ 65.50% |