83% wp-editor-bootstrap-blocks

Code Review | Bootstrap Blocks for WP Editor v2

WordPress plugin Bootstrap Blocks for WP Editor v2 scored83%from 54 tests.

About plugin

  • Plugin page: wp-editor-bootstr...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Apr 19, 2023
  • Number of updates: 21
  • Update frequency: every 72.4 days
  • Top authors: Virgial (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /10,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.41ms] Passed 4 tests

Server-side resources used by Bootstrap Blocks for WP Editor v2
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1646.63 ▼5.90
Dashboard /wp-admin3.49 ▲0.1454.61 ▼9.00
Posts /wp-admin/edit.php3.60 ▲0.2559.20 ▼0.85
Add New Post /wp-admin/post-new.php6.10 ▲0.2192.09 ▼13.89
Media Library /wp-admin/upload.php3.41 ▲0.1840.00 ▲1.90
Bootstrap Blocks /wp-admin/admin.php?page=wp-editor-bootstrap-blocks-settings3.4236.94

Server storage [IO: ▲3.95MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
gtbbootstrap_version
db_upgraded
widget_recent-comments
gtbbootstrap_options
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bootstrap Blocks for WP Editor v2
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.74 ▲0.311.99 ▼0.8442.50 ▼18.48
Dashboard /wp-admin2,250 ▲625.79 ▲0.8699.54 ▼6.3672.23 ▲31.58
Posts /wp-admin/edit.php2,136 ▲472.00 ▼0.0145.56 ▲1.7242.11 ▲5.01
Add New Post /wp-admin/post-new.php6,393 ▲4,85128.54 ▲10.121,011.35 ▲380.8161.79 ▲1.72
Media Library /wp-admin/upload.php1,420 ▲324.23 ▲0.04100.47 ▼6.4380.63 ▲35.35
Settings /wp-admin/admin.php?page=wp-editor-bootstrap-blocks-settings§ion=settings#settings2,0922.7186.1757.91
Extra /wp-admin/admin.php?page=wp-editor-bootstrap-blocks-settings§ion=settings#extra2,0922.7082.8043.65
Bootstrap Blocks /wp-admin/admin.php?page=wp-editor-bootstrap-blocks-settings2,0922.7386.3043.74
Design Package /wp-admin/admin.php?page=wp-editor-bootstrap-blocks-settings§ion=settings#design2,0892.7176.0144.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • gtbbootstrap_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-editor-bootstrap-blocks/modules/page-template/bootstrap-template.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-editor-bootstrap-blocks/modules/settings-page/views/get-pro-box.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

wp-editor-bootstrap-blocks/wp-editor-bootstrap-blocks.php 92% from 13 tests

The principal PHP file in "Bootstrap Blocks for WP Editor v2" v. 2.2.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,447 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP264024481,426
JavaScript92329
CSS60216
SVG2006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.40
▷ Minimum class complexity6.00
▷ Maximum class complexity52.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods62
▷ Static methods1320.97%
▷ Public methods5283.87%
▷ Protected methods69.68%
▷ Private methods46.45%
Functions35
▷ Named functions3291.43%
▷ Anonymous functions38.57%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.09MB with 0.72MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/settings-page/assets/design-package-banner.png98.62KB32.38KB▼ 67.17%
modules/settings-page/assets/Banner WP-Plugins@0,5x.png195.50KB73.55KB▼ 62.38%
modules/settings-page/assets/gtb-dashboard-text.png76.94KB23.94KB▼ 68.88%
modules/settings-page/assets/gtb-group-image-v2.png746.49KB248.96KB▼ 66.65%