Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.48ms] Passed 4 tests
A check of server-side resources used by Paid Memberships Pro - Kissmetrics Add On
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.45 ▼2.97 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.61 ▼11.86 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.96 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.97 ▼15.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.61 ▲9.91 |
PMPro Kissmetrics /wp-admin/options-general.php?page=pmpro-kissmetrics | 3.30 | 31.48 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Paid Memberships Pro - Kissmetrics Add On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.18 | 4.66 ▲2.72 | 42.63 ▲3.26 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▼0.08 | 93.76 ▼13.57 | 38.80 ▼6.86 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.03 | 37.04 ▼4.35 | 31.60 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.42 ▼4.77 | 629.52 ▲18.00 | 55.42 ▲7.77 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▼0.03 | 94.92 ▼1.46 | 42.84 ▼0.34 |
PMPro Kissmetrics /wp-admin/options-general.php?page=pmpro-kissmetrics | 875 | 2.02 | 23.25 | 27.50 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > At least one argument required. km.php <km_key> [<log_dir>]
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pmpro-kissmetrics/adminpages/settings.php:115
- > PHP Notice
Undefined variable: argv in wp-content/plugins/pmpro-kissmetrics/trunk/includes/lib/km.php on line 329
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pmpro-kissmetrics/pmpro-kissmetrics.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-kissmetrics/trunk/includes/init.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pmpro-kissmetrics/trunk/adminpages/settings.php:115
- > PHP Notice
Undefined variable: argv in wp-content/plugins/pmpro-kissmetrics/includes/lib/km.php on line 329
- > PHP Notice
Undefined variable: argv in wp-content/plugins/pmpro-kissmetrics/trunk/includes/lib/km.php on line 329
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-kissmetrics/includes/init.php:30
- > PHP Notice
Undefined variable: argv in wp-content/plugins/pmpro-kissmetrics/includes/lib/km.php on line 329
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3 in pmpro-kissmetrics/assets to your readme.txt
pmpro-kissmetrics/pmpro-kissmetrics.php 92% from 13 tests
"Paid Memberships Pro - Kissmetrics Add On" version .3.1...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of ".3.1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected793 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 193 | 151 | 778 |
Bourne Shell | 1 | 0 | 8 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.81 |
▷ 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 | 42 | |
▷ Static methods | 42 | 100.00% |
▷ Public methods | 16 | 38.10% |
▷ Protected methods | 26 | 61.90% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
6 PNG files occupy 0.25MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 23.93KB | 5.68KB | ▼ 76.28% |
screenshot-3.png | 45.23KB | 9.03KB | ▼ 80.04% |
screenshot-1.png | 56.41KB | 14.96KB | ▼ 73.47% |
trunk/screenshot-2.png | 23.93KB | 5.68KB | ▼ 76.28% |
trunk/screenshot-1.png | 56.41KB | 14.96KB | ▼ 73.47% |