Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/bootstrap-mce-elements/index.php+70
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.53MB] [CPU: ▼349.07ms] Passed 4 tests
A check of server-side resources used by Bootstrap MCE Elements
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 4.26 ▼46.12 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.84 ▼53.19 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.32 ▼43.48 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.46 ▼1,253.49 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.82 ▼25.15 |
Bootstrap MCE /wp-admin/options-general.php?page=bootstrap-mce-settings | 1.86 | 4.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Bootstrap MCE Elements
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲46 | 15.91 ▼0.14 | 5.79 ▲0.18 | 2.70 ▲0.15 |
Dashboard /wp-admin | 2,889 ▲28 | 6.14 ▲0.03 | 159.70 ▲17.01 | 160.89 ▼4.10 |
Posts /wp-admin/edit.php | 2,693 ▲21 | 3.23 ▼0.02 | 67.51 ▼11.58 | 141.58 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.81 ▲1.27 | 416.52 ▼25.33 | 198.00 ▲28.60 |
Media Library /wp-admin/upload.php | 1,691 ▼7 | 5.48 ▼0.05 | 145.80 ▲0.72 | 240.46 ▲49.93 |
Bootstrap MCE /wp-admin/options-general.php?page=bootstrap-mce-settings | 1,019 | 2.41 | 53.74 | 131.12 |
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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/bootstrap-mce-elements/index.php+70
Trying to access array offset on value of type bool
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bootstrap-mce-settings
- > Notice in wp-content/plugins/bootstrap-mce-elements/index.php+35
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bootstrap-mce-elements/assets/bootstrap.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bootstrap-mce-elements/index.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
5 plugin tags: bootstrap, elements, tinymce, labels, buttons
bootstrap-mce-elements/index.php 92% from 13 tests
"Bootstrap MCE Elements" version 1.0.0'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:
- Main file name: The principal plugin file should be the same as the plugin slug ("bootstrap-mce-elements.php" instead of "index.php")
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 plugin1,422 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 17 | 19 | 1,066 |
PHP | 2 | 32 | 37 | 321 |
JavaScript | 2 | 0 | 8 | 35 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bootstrap.png | 0.82KB | 1.07KB | 0.00% |
assets/sprite.png | 1.00KB | 0.59KB | ▼ 40.74% |