10% bootstrap-mce-elements

Code Review | Bootstrap MCE Elements

WordPress plugin Bootstrap MCE Elements scored 10% from 54 tests.

About plugin

  • Plugin page: bootstrap-mce-ele...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.5.1
  • WordPress version: 5.9.2
  • First release: Apr 17, 2013
  • Latest release: Apr 17, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: daniel@parachuteapplications.c (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,235 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.26 ▼46.12
Dashboard /wp-admin1.86 ▼1.554.84 ▼53.19
Posts /wp-admin/edit.php1.86 ▼1.784.32 ▼43.48
Add New Post /wp-admin/post-new.php1.86 ▼5.114.46 ▼1,253.49
Media Library /wp-admin/upload.php1.86 ▼1.443.82 ▼25.15
Bootstrap MCE /wp-admin/options-general.php?page=bootstrap-mce-settings1.864.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲4615.91 ▼0.145.79 ▲0.182.70 ▲0.15
Dashboard /wp-admin2,889 ▲286.14 ▲0.03159.70 ▲17.01160.89 ▼4.10
Posts /wp-admin/edit.php2,693 ▲213.23 ▼0.0267.51 ▼11.58141.58 ▼5.92
Add New Post /wp-admin/post-new.php1,664 ▲316.81 ▲1.27416.52 ▼25.33198.00 ▲28.60
Media Library /wp-admin/upload.php1,691 ▼75.48 ▼0.05145.80 ▲0.72240.46 ▲49.93
Bootstrap MCE /wp-admin/options-general.php?page=bootstrap-mce-settings1,0192.4153.74131.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS217191,066
PHP23237321
JavaScript20835

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 code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/bootstrap.png0.82KB1.07KB0.00%
assets/sprite.png1.00KB0.59KB▼ 40.74%