Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.79ms] Passed 4 tests
Server-side resources used by Plugin Bundles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.26 ▲5.33 |
Dashboard /wp-admin | 3.35 ▼0.00 | 45.90 ▼27.37 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.68 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 78.97 ▼8.75 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.82 ▲1.87 |
Bundles /wp-admin/plugins.php?page=bundles | 3.44 | 29.58 |
Server storage [IO: ▲0.05MB] [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: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
BNDLS_VERSION_KEY |
bndls_settings |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Bundles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.58 ▼0.79 | 8.36 ▲6.76 | 44.05 ▲3.23 |
Dashboard /wp-admin | 2,198 ▲21 | 5.56 ▼0.12 | 86.33 ▼0.98 | 37.13 ▼3.13 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.09 | 39.44 ▲3.01 | 36.64 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.17 ▲0.31 | 682.47 ▲18.73 | 48.92 ▼15.54 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.17 ▼0.03 | 96.86 ▼3.29 | 40.45 ▼2.99 |
Bundles /wp-admin/plugins.php?page=bundles | 768 | 1.99 | 24.01 | 22.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- BNDLS_VERSION_KEY
- widget_theysaidso_widget
- bndls_settings
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=bundles
- > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
Undefined variable: id
- > GET request to /wp-admin/plugins.php?page=bundles
- > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
Undefined variable: symbol
- > GET request to /wp-admin/plugins.php?page=bundles
- > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
Undefined variable: companyName
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/plugin-bundles/includes/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/plugin-bundles/includes/bundles_overview.php:333
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-bundles/includes/init.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-bundles/plugin-bundles.php:18
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: plugin bundle
plugin-bundles/plugin-bundles.php 92% from 13 tests
"Plugin Bundles" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected654 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 359 | 294 | 480 |
JSON | 1 | 13 | 0 | 95 |
CSS | 1 | 29 | 1 | 77 |
JavaScript | 1 | 2 | 1 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wp-pic-sprite.png | 12.93KB | 6.24KB | ▼ 51.75% |