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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼290.01ms] Passed 4 tests
Server-side resources used by Custom Bootstrap Editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 65.20 ▲16.85 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.26 ▼2.89 |
Posts /wp-admin/edit.php | 3.68 ▲0.03 | 37.89 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 110.26 ▼1,157.28 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 30.29 ▲0.93 |
Custom Bootstrap Editor /wp-admin/options-general.php?page=custom-bootstrap-editor | 3.30 | 24.78 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Bootstrap Editor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲30 | 15.13 ▼0.47 | 6.82 ▲0.77 | 2.45 ▲0.37 |
Dashboard /wp-admin | 2,896 ▲42 | 6.24 ▲0.09 | 129.88 ▼8.40 | 160.32 ▼2.88 |
Posts /wp-admin/edit.php | 2,692 ▲4 | 3.23 ▼0.12 | 66.25 ▲1.36 | 208.25 ▲62.23 |
Add New Post /wp-admin/post-new.php | 1,671 ▲10 | 20.64 ▲4.68 | 441.53 ▲39.44 | 168.38 ▲4.11 |
Media Library /wp-admin/upload.php | 1,702 ▲1 | 5.56 ▲0.05 | 145.08 ▲7.99 | 186.80 ▼1.32 |
Custom Bootstrap Editor /wp-admin/options-general.php?page=custom-bootstrap-editor | 1,037 | 2.42 | 53.81 | 121.85 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/custom-bootstrap-editor/custom-bootstrap-editor.php+79
unlink(wp-content/uploads/cbe/custombootstrap.css): No such file or directory
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-bootstrap-editor/custom-bootstrap-editor.php:172
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-bootstrap-editor/templates/settings.php:76
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=custom-bootstrap-editor
- > Network (severe)
wp-content/uploads/cbe/custombootstrap.css?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Custom Bootstrap Editor) image not found
custom-bootstrap-editor/custom-bootstrap-editor.php Passed 13 tests
The main PHP script in "Custom Bootstrap Editor" version 1.0.1 is automatically included on every request by WordPress
58 characters long description:
Add Twitter's Bootstrap CSS with LESS editor to your site.
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
Success! There were no dangerous files found in this plugin9,682 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 44 | 1,089 | 1,248 | 5,081 |
PHP | 4 | 1,447 | 1,042 | 4,087 |
CSS | 1 | 0 | 0 | 252 |
SVG | 1 | 0 | 0 | 229 |
PO File | 1 | 9 | 11 | 28 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 21.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 366 | |
▷ Static methods | 97 | 26.50% |
▷ Public methods | 307 | 83.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 59 | 16.12% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.94KB | 8.02KB | ▼ 59.78% |