Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shopp-constant-contact/shopp-constant-contact.php+48
Accessing static property Shopp_ConstantContact::$username as non static
Server metrics [RAM: ▼1.63MB] [CPU: ▼54.49ms] Passed 4 tests
This is a short check of server-side resources used by Shopp + Constant Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.35 ▼1.11 | 6.13 ▼32.41 |
Dashboard /wp-admin | 2.37 ▼0.93 | 8.20 ▼47.54 |
Posts /wp-admin/edit.php | 2.37 ▼0.98 | 7.26 ▼49.25 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.51 | 10.47 ▼88.74 |
Media Library /wp-admin/upload.php | 2.37 ▼0.86 | 7.35 ▼29.95 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Shopp + Constant Contact
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 14.48 ▲0.28 | 1.73 ▼0.20 | 43.71 ▲0.73 |
Dashboard /wp-admin | 2,211 ▲23 | 5.90 ▲0.01 | 107.40 ▲1.05 | 44.42 ▼2.25 |
Posts /wp-admin/edit.php | 2,091 ▲23 | 2.01 ▲0.02 | 34.68 ▼1.12 | 34.22 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,516 ▼19 | 17.64 ▼5.56 | 678.67 ▼31.41 | 66.65 ▲2.61 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.22 ▲0.01 | 96.48 ▼16.67 | 42.75 ▼7.37 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/shopp-constant-contact/shopp-constant-contact.php+48
Accessing static property Shopp_ConstantContact::$username as non static
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 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-constant-contact/shopp-constant-contact.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The Shopp + Constant Contact WordPress admin page.), #2 (An additional view of the Shopp + Constant Contact WordPress admin page.)
- Tags: There are too many tags (12 tag instead of maximum 10)
shopp-constant-contact/shopp-constant-contact.php 92% from 13 tests
Analyzing the main PHP file in "Shopp + Constant Contact" version 1.3
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
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
No dangerous file extensions were detected1,048 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 175 | 322 | 1,035 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 38 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 226.40KB | 74.14KB | ▼ 67.25% |
screenshot-1.png | 130.80KB | 46.02KB | ▼ 64.82% |
images/shopp-email-marketing-opt-in.png | 25.97KB | 7.39KB | ▼ 71.54% |