Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/killed-dolphins-counter/modules/widgets.php+56
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.63ms] Passed 4 tests
Server-side resources used by Killed Dolphins Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.34 ▼33.73 |
Dashboard /wp-admin | 2.08 ▼1.26 | 6.71 ▼56.64 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.58 ▼34.15 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.94 ▼90.00 |
Media Library /wp-admin/upload.php | 2.09 ▼1.15 | 5.26 ▼29.50 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_dolphins_widget |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Killed Dolphins Counter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲315 | 15.42 ▲1.24 | 5.27 ▲3.40 | 41.36 ▼4.07 |
Dashboard /wp-admin | 2,354 ▲169 | 6.48 ▲1.61 | 129.25 ▲11.58 | 38.77 ▼6.45 |
Posts /wp-admin/edit.php | 2,302 ▲213 | 3.35 ▲1.39 | 49.57 ▲13.04 | 31.63 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.15 ▼0.10 | 607.95 ▼98.40 | 33.33 ▼20.03 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.02 ▼0.21 | 83.57 ▼29.95 | 40.05 ▼7.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/killed-dolphins-counter/modules/widgets.php+56
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_dolphins_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/killed-dolphins-counter/modules/starter.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/killed-dolphins-counter/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/killed-dolphins-counter/modules/widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/killed-dolphins-counter/modules/scripts.php:3
- > PHP Notice
Undefined index: start in wp-content/plugins/killed-dolphins-counter/modules/starter.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/killed-dolphins-counter/modules/shortcodes.php:2
- > 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 Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: dolphins, countdown, killed
killed-dolphins-counter/wp-killed-dolphins-countdown.php 85% from 13 tests
The primary PHP file in "Killed Dolphins Counter" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("killed-dolphins-counter.php" instead of "wp-killed-dolphins-countdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin10,839 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1 | 18 | 10,617 |
PHP | 5 | 36 | 23 | 191 |
JavaScript | 2 | 10 | 7 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/images/Dying_Dolphins_Logo.png | 28.57KB | 5.51KB | ▼ 80.71% |
modules/images/red_dolphin.png | 8.51KB | 5.51KB | ▼ 35.26% |
modules/inc/assets/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/inc/assets/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/inc/assets/css/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |