Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/shopp-contactology/shopp-contactology.php+46
Accessing static property Shopp_Contactology::$api_key as non static
Server metrics [RAM: ▼2.78MB] [CPU: ▼453.43ms] Passed 4 tests
A check of server-side resources used by Shopp + Contactology
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.73 | 10.12 ▼41.47 |
Dashboard /wp-admin | 2.76 ▼6.66 | 11.23 ▼1,645.81 |
Posts /wp-admin/edit.php | 2.76 ▼0.60 | 9.44 ▼44.09 |
Add New Post /wp-admin/post-new.php | 2.76 ▼3.13 | 8.47 ▼82.34 |
Media Library /wp-admin/upload.php | 2.76 ▼0.48 | 7.91 ▼32.13 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Shopp + Contactology
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.11 | 2.14 ▼0.04 | 56.98 ▲5.78 |
Dashboard /wp-admin | 2,200 ▲5 | 5.58 ▼0.05 | 103.91 ▲7.29 | 40.97 ▲1.79 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▲0.02 | 35.17 ▼6.87 | 29.18 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,410 ▼116 | 18.01 ▼5.24 | 687.82 ▲30.12 | 59.56 ▲11.41 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.13 ▲0.01 | 135.72 ▲17.71 | 48.67 ▲4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/shopp-contactology/shopp-contactology.php+46
Accessing static property Shopp_Contactology::$api_key as non static
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-contactology/shopp-contactology.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #1 (The Shopp + Contactology WordPress admin page.2. An additional view of the Shopp + Contactology WordPress admin page.) image required
shopp-contactology/shopp-contactology.php Passed 13 tests
The principal PHP file in "Shopp + Contactology" v. 1.3 is loaded by WordPress automatically on each request
137 characters long description:
Customers who opt-in to email marketing from your WordPress ecommerce site during checkout are added to a specified list on Contactology.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,436 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 650 | 2,112 | 1,423 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 160 | |
▷ Static methods | 1 | 0.62% |
▷ Public methods | 159 | 99.38% |
▷ Protected methods | 1 | 0.62% |
▷ 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.45MB with 0.31MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/shopp-email-marketing-opt-in.png | 25.97KB | 7.39KB | ▼ 71.54% |
screenshot-1.png | 133.58KB | 47.12KB | ▼ 64.73% |
screenshot-2.png | 303.53KB | 90.01KB | ▼ 70.35% |