Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shopp-mad-mimi/shopp-mad-mimi.php+47
Accessing static property Shopp_MadMimi::$email as non static
Server metrics [RAM: ▼1.59MB] [CPU: ▼50.11ms] Passed 4 tests
Server-side resources used by Shopp + Mad Mimi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.07 | 7.02 ▼30.65 |
Dashboard /wp-admin | 2.42 ▼0.89 | 7.84 ▼42.01 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 7.57 ▼43.32 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 7.58 ▼84.44 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 7.46 ▼29.07 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Shopp + Mad Mimi: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.32 ▲0.19 | 1.89 ▲0.25 | 43.88 ▲3.21 |
Dashboard /wp-admin | 2,200 ▲23 | 5.63 ▼0.02 | 87.26 ▼2.46 | 42.29 ▼1.47 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.00 ▼0.01 | 33.30 ▼9.32 | 32.90 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 23.02 ▼0.14 | 685.37 ▲7.76 | 61.15 ▼2.13 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.24 ▲0.06 | 97.87 ▼7.96 | 42.24 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/shopp-mad-mimi/shopp-mad-mimi.php+47
Accessing static property Shopp_MadMimi::$email as non static
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-mad-mimi/shopp-mad-mimi.php:38
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (The Shopp + Mad Mimi WordPress admin page.), #2 (An additional view of the Shopp + Mad Mimi WordPress admin page.)
shopp-mad-mimi/shopp-mad-mimi.php Passed 13 tests
The main file in "Shopp + Mad Mimi" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
133 characters long description:
Customers who opt-in to email marketing from your WordPress ecommerce site during checkout are added to a specified list on Mad Mimi.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,174 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 208 | 294 | 1,161 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 84.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 10 | 12.20% |
▷ Public methods | 42 | 51.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 48.78% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.35MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 196.68KB | 61.03KB | ▼ 68.97% |
screenshot-1.png | 131.09KB | 46.29KB | ▼ 64.69% |
images/shopp-email-marketing-opt-in.png | 25.97KB | 7.39KB | ▼ 71.54% |