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.03MB] [CPU: ▼4.98ms] Passed 4 tests
Server-side resources used by Where I'm Going
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.24 ▼2.70 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.88 ▼6.13 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.11 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.09 ▼10.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.24 ▲0.52 |
Settings /wp-admin/admin.php?page=wig_settings | 3.25 | 35.39 |
My Destinations /wp-admin/admin.php?page=wig_destinations | 3.26 | 38.34 |
Instructions /wp-admin/admin.php?page=whereimgoing | 3.25 | 34.51 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_where_im_going |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
wig_options |
widget_theysaidso_widget |
db_upgraded |
ppd_wig_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Where I'm Going
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.35 ▼0.00 | 1.77 ▼0.05 | 43.53 ▲5.85 |
Dashboard /wp-admin | 2,233 ▲55 | 5.62 ▼0.09 | 86.57 ▼26.54 | 37.43 ▼6.62 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.05 | 34.91 ▼5.44 | 36.62 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.11 ▼0.10 | 632.60 ▼38.22 | 76.93 ▲5.81 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.13 ▼0.11 | 102.92 ▼8.29 | 45.10 ▼1.58 |
Settings /wp-admin/admin.php?page=wig_settings | 853 | 2.04 | 28.11 | 25.26 |
My Destinations /wp-admin/admin.php?page=wig_destinations | 916 | 2.01 | 23.95 | 34.63 |
Instructions /wp-admin/admin.php?page=whereimgoing | 897 | 2.00 | 22.74 | 29.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- ppd_wig_options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% 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 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/where-im-going/views/common/instructions_shortcode.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: destination_id in wp-content/plugins/where-im-going/views/destination/edit_destination.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/where-im-going/classes/class.paypal_donation/class.paypal_donation.php:137
- > PHP Fatal error
Uncaught Error: Class 'wig_destination' not found in wp-content/plugins/where-im-going/classes/class.destination_form.php:6
- > PHP Notice
Undefined index: destination_id in wp-content/plugins/where-im-going/views/destination/delete_destination.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'wig_destination_form' not found in wp-content/plugins/where-im-going/views/destination/edit_destination.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/where-im-going/classes/class.paypal_donation/class.paypal_donation.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function wig_output_settings_form() in wp-content/plugins/where-im-going/views/common/wig_settings.php:33
- > PHP Fatal error
Uncaught Error: Class 'wig_destination_form' not found in wp-content/plugins/where-im-going/views/destination/add_destination.php:35
- > PHP Notice
Undefined index: wig_hidden_delete in wp-content/plugins/where-im-going/views/destination/delete_destination.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'wig_destination' not found in wp-content/plugins/where-im-going/views/destination/delete_destination.php:14
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=whereimgoing
- > Network (severe)
wp-content/plugins/where-im-going/anytime/anytime.css?ver=2013403 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (http://www.nuttymango.com/wp-content/uploads/2013/04/wig-main-page.png), #2 (http://www.nuttymango.com/wp-content/uploads/2013/04/wig-add-destination.png)
where-im-going/where-im-going.php Passed 13 tests
The main PHP file in "Where I'm Going" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
Where are you now? Where are you going? Where have you been? Keep your readers up to date on your current, past, and future travels.
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 detected3,182 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 356 | 533 | 1,608 |
JavaScript | 4 | 202 | 293 | 1,572 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 3 | 6.67% |
▷ Public methods | 28 | 62.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 37.78% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
16 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.33KB | 0.13KB | ▼ 60.36% |
images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
images/ui-bg_glass_85_dfeffc_1x400.png | 0.33KB | 0.16KB | ▼ 53.08% |
images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |