Benchmarks
Plugin footprint 58% 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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/shopp-icontact/shopp-icontact.php+50
Accessing static property Shopp_iContact::$username as non static
Server metrics [RAM: ▼2.38MB] [CPU: ▼341.24ms] Passed 4 tests
Analyzing server-side resources used by Shopp + iContact
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.99 ▼1.52 | 5.40 ▼49.24 |
Dashboard /wp-admin | 2.01 ▼1.40 | 4.49 ▼29.62 |
Posts /wp-admin/edit.php | 2.01 ▼1.63 | 4.94 ▼32.74 |
Add New Post /wp-admin/post-new.php | 2.01 ▼4.96 | 4.72 ▼1,253.37 |
Media Library /wp-admin/upload.php | 2.01 ▼1.29 | 4.01 ▼27.32 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Shopp + iContact
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲55 | 15.85 ▲0.21 | 6.32 ▲0.17 | 2.53 ▲0.51 |
Dashboard /wp-admin | 2,894 ▲33 | 6.11 ▼0.04 | 117.83 ▼15.12 | 154.42 ▼0.35 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.01 | 64.10 ▲1.05 | 148.62 ▲9.99 |
Add New Post /wp-admin/post-new.php | 1,663 ▼27 | 16.36 ▼4.98 | 411.46 ▼23.36 | 156.11 ▲3.23 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.49 ▲0.00 | 145.74 ▲1.10 | 195.10 ▲0.96 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/shopp-icontact/shopp-icontact.php+50
Accessing static property Shopp_iContact::$username as non static
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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-icontact/shopp-icontact.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (The Shopp + iContact WordPress admin page.), #2 (An additional view of the Shopp + iContact WordPress admin page.)
- Tags: You are using too many tags: 11 tag instead of maximum 10
shopp-icontact/shopp-icontact.php Passed 13 tests
"Shopp + iContact" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 iContact.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin554 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 81 | 89 | 541 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.60 |
▷ 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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 3 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 76.94KB | 25.31KB | ▼ 67.10% |
images/shopp-email-marketing-opt-in.png | 25.97KB | 7.39KB | ▼ 71.54% |
screenshot-1.png | 130.09KB | 45.46KB | ▼ 65.06% |