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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.30ms] Passed 4 tests
This is a short check of server-side resources used by Bunny.net+BunnyAPI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.85 ▼0.07 |
Dashboard /wp-admin | 3.47 ▲0.17 | 51.86 ▼4.71 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.45 ▼2.09 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 95.58 ▼13.52 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.44 ▼0.86 |
BunnyAPI /wp-admin/tools.php?page=bunnycdn_extended | 3.36 | 33.22 |
Bunny.net Media /wp-admin/upload.php?page=bunnycdn-media-library | 3.34 | 33.54 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Bunny.net+BunnyAPI
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.24 ▼1.20 | 1.78 ▼0.27 | 42.99 ▼1.03 |
Dashboard /wp-admin | 2,219 ▲28 | 4.83 ▼0.06 | 103.13 ▲1.32 | 42.14 ▼0.27 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.00 ▼0.05 | 35.50 ▼5.64 | 32.87 ▼5.07 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.11 ▼5.08 | 622.68 ▼47.23 | 57.63 ▼1.74 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.01 | 100.07 ▼13.37 | 43.21 ▼3.56 |
BunnyAPI /wp-admin/tools.php?page=bunnycdn_extended | 838 | 2.14 | 24.48 | 32.56 |
Bunny.net Media /wp-admin/upload.php?page=bunnycdn-media-library | 672 | 1.14 | 7.13 | 23.78 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bunnycdnbunnyapi/inc/bunnyapiMedia.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #5 (BunnyAPI Entry Key) image required
- Screenshots: Please a description for screenshot #13 in bunnycdnbunnyapi/assets to your readme.txt
- Requires at least: The plugin version is formatted incorrectly
bunnycdnbunnyapi/bunnyapi.php 85% from 13 tests
"Bunny.net+BunnyAPI" version 2.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bunnycdnbunnyapi.php" instead of "bunnyapi.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin808 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 271 | 464 | 807 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis 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.45 |
Average class complexity | 31.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 30 | 81.08% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
13 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-13.png | 63.97KB | 64.12KB | 0.00% |
assets/screenshot-12.png | 9.15KB | 9.41KB | 0.00% |
assets/screenshot-6.png | 11.39KB | 11.44KB | 0.00% |
assets/screenshot-7.png | 29.93KB | 30.00KB | 0.00% |
assets/screenshot-10.png | 8.27KB | 8.29KB | 0.00% |