Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.03ms] Passed 4 tests
Server-side resources used by KnockoutBunny
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 50.16 ▲2.53 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.53 ▼5.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.93 ▼4.95 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.33 ▼7.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.91 ▼1.88 |
knockoutbunny_results /wp-admin/edit.php?post_type=knockoutbunny_result | 3.36 | 37.48 |
KnockoutBunny /wp-admin/options-general.php?page=ngg_kobunny | 3.26 | 32.36 |
Add New /wp-admin/post-new.php?post_type=knockoutbunny_result | 3.35 | 44.29 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KnockoutBunny
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲97 | 14.27 ▼0.36 | 2.15 ▲0.17 | 46.76 ▲2.44 |
Dashboard /wp-admin | 2,264 ▲87 | 5.63 ▼0.03 | 96.35 ▼5.30 | 42.67 ▼2.72 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.00 ▲0.00 | 34.33 ▼4.80 | 35.18 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.05 ▼0.00 | 694.45 ▲15.84 | 57.88 ▲3.28 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.22 ▲0.05 | 97.24 ▼8.04 | 41.84 ▼1.12 |
knockoutbunny_results /wp-admin/edit.php?post_type=knockoutbunny_result | 1,103 | 1.92 | 31.68 | 28.48 |
KnockoutBunny /wp-admin/options-general.php?page=ngg_kobunny | 919 | 2.00 | 22.06 | 29.89 |
Add New /wp-admin/post-new.php?post_type=knockoutbunny_result | 1,588 | 2.54 | 52.13 | 61.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ngg_kobunny
- > Notice in wp-content/plugins/knockoutbunny/includes/ngg_kobunny_admin.php+274
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/knockoutbunny/includes/ngg_kobunny_notready.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knockoutbunny/knockoutbunny.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knockoutbunny/includes/ngg_kobunny_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/knockoutbunny/includes/ngg_kobunny_playiframe.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
5 plugin tags: competition, quiz, engagement, survey, game
knockoutbunny/knockoutbunny.php 92% from 13 tests
This is the main PHP file of "KnockoutBunny" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin701 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 97 | 74 | 381 |
JavaScript | 1 | 71 | 3 | 256 |
CSS | 1 | 8 | 2 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ngg_kobunny_guide.png | 41.67KB | 12.54KB | ▼ 69.90% |