Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.53MB] [CPU: ▲4.16ms] Passed 4 tests
Server-side resources used by Bonzer Custom Fields Creator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 46.19 ▲5.15 |
Dashboard /wp-admin | 3.86 ▲0.51 | 71.59 ▲6.45 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 59.97 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 100.08 ▼2.33 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 49.44 ▲14.19 |
Server storage [IO: ▲21.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 557 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Bonzer Custom Fields Creator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,044 ▲283 | 15.26 ▲0.90 | 1.71 ▲0.01 | 43.37 ▼0.50 |
Dashboard /wp-admin | 2,447 ▲267 | 6.86 ▲1.21 | 133.25 ▲48.65 | 110.56 ▲70.46 |
Posts /wp-admin/edit.php | 2,371 ▲271 | 3.61 ▲1.61 | 55.12 ▲17.86 | 83.74 ▲40.48 |
Add New Post /wp-admin/post-new.php | 1,593 ▲67 | 23.68 ▲0.39 | 622.84 ▼78.33 | 193.12 ▲122.81 |
Media Library /wp-admin/upload.php | 1,486 ▲86 | 5.09 ▲0.90 | 100.80 ▼9.61 | 87.85 ▲39.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bonzer-custom-fields/assets/dist/index.php
- 105× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/bonzer-custom-fields/vendor/wikimedia/less.php/lib/Less/Tree/Media.php:9
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/bonzer-custom-fields/vendor/wikimedia/less.php/lib/Less/Exception/Chunk.php on line 89
- > PHP Fatal error
Uncaught Error: Class 'Bonzer\\Inputs\\contracts\\Input_Abstract' not found in wp-content/plugins/bonzer-custom-fields/vendor/bonzer/inputs/src/fields/Heading.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Bonzer\\Inputs\\contracts\\interfaces\\Inputs_Factory' not found in wp-content/plugins/bonzer-custom-fields/vendor/bonzer/wordpress-admin-inputs/src/contracts/interfaces/Inputs_Factory.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BCF\\contracts\\interfaces\\Builder' not found in wp-content/plugins/bonzer-custom-fields/inc/builders/Taxonomy_Fields_Builder.php:15
- > PHP Fatal error
Uncaught Error: Class 'Bonzer\\IOC_Container\\facades\\Container' not found in wp-content/plugins/bonzer-custom-fields/vendor/bonzer/wordpress-admin-inputs/src/functions.php:8
- > PHP Fatal error
Uncaught Error: Class 'Less_VisitorReplacing' not found in wp-content/plugins/bonzer-custom-fields/vendor/wikimedia/less.php/lib/Less/Visitor/toCSS.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Bonzer\\Inputs\\contracts\\interfaces\\Auth' not found in wp-content/plugins/bonzer-custom-fields/vendor/bonzer/inputs/src/auth/Auth.php:11
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/bonzer-custom-fields/vendor/wikimedia/less.php/lib/Less/Tree/Url.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Exception_Parser' not found in wp-content/plugins/bonzer-custom-fields/vendor/wikimedia/less.php/lib/Less/Exception/Compiler.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: excellent, fields, bcf, custom fields, bonzer...
bonzer-custom-fields/bonzer-custom-fields.php 92% from 13 tests
Analyzing the main PHP file in "Bonzer Custom Fields Creator" version 1.0
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 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/bonzer-custom-fields/vendor/bin/lessc.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 3,566 | 4,667 | 12,563 |
CSS | 12 | 105 | 180 | 3,968 |
LESS | 21 | 298 | 120 | 3,671 |
SVG | 3 | 79 | 71 | 2,842 |
JavaScript | 10 | 30 | 107 | 781 |
Markdown | 5 | 130 | 0 | 522 |
JSON | 9 | 0 | 0 | 466 |
HTML | 1 | 0 | 5 | 11 |
DOS Batch | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 441.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 115 | |
▷ Abstract classes | 4 | 3.48% |
▷ Concrete classes | 111 | 96.52% |
▷ Final classes | 0 | 0.00% |
Methods | 881 | |
▷ Static methods | 95 | 10.78% |
▷ Public methods | 682 | 77.41% |
▷ Protected methods | 95 | 10.78% |
▷ Private methods | 104 | 11.80% |
Functions | 33 | |
▷ Named functions | 7 | 21.21% |
▷ Anonymous functions | 26 | 78.79% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
506 PNG files occupy 20.18MB with 17.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/vectors/fallbacks/education/60X60/light-bulb.png | 14.20KB | 2.18KB | ▼ 84.66% |
assets/images/vectors/fallbacks/business/100X100/crate-2.png | 39.28KB | 4.52KB | ▼ 88.49% |
assets/images/vectors/fallbacks/education/60X60/computer-mouse.png | 14.20KB | 1.84KB | ▼ 87.06% |
assets/images/vectors/fallbacks/business/60X60/bag.png | 14.20KB | 1.68KB | ▼ 88.14% |
assets/images/vectors/fallbacks/education/60X60/notebook.png | 14.20KB | 2.10KB | ▼ 85.23% |