84% rad-bootstrap-3-blocks

Code Review | Rad Bootstrap 3 Blocks

WordPress plugin Rad Bootstrap 3 Blocks scored 84% from 54 tests.

About plugin

  • Plugin page: rad-bootstrap-3-b...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 19, 2019
  • Latest release: Feb 25, 2019
  • Number of updates: 12
  • Update frequency: every 0.7 days
  • Top authors: jdiamonte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,345 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼9.21ms] Passed 4 tests

Server-side resources used by Rad Bootstrap 3 Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.62 ▲6.16
Dashboard /wp-admin3.41 ▲0.1145.83 ▼0.54
Posts /wp-admin/edit.php3.52 ▲0.1748.85 ▲6.27
Add New Post /wp-admin/post-new.php4.92 ▼0.9651.48 ▼48.25
Media Library /wp-admin/upload.php3.33 ▲0.1138.70 ▲5.79

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
radBBlocks_load_bootstrap_styles_frontend
db_upgraded
widget_theysaidso_widget
radBBlocks_load_bootstrap_styles_editor

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rad Bootstrap 3 Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.51 ▼0.801.77 ▲0.2142.83 ▲4.83
Dashboard /wp-admin2,219 ▲275.82 ▲0.93103.88 ▼18.4340.06 ▼2.73
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0336.46 ▼0.4131.70 ▲1.40
Add New Post /wp-admin/post-new.php1,691 ▲16822.32 ▼1.04713.64 ▲79.6262.02 ▲10.00
Media Library /wp-admin/upload.php1,401 ▲134.14 ▼0.09104.21 ▲8.0243.43 ▼0.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • radBBlocks_load_bootstrap_styles_editor
    • theysaidso_admin_options
    • radBBlocks_load_bootstrap_styles_frontend

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rad-bootstrap-3-blocks/rad-bootstrap-3-blocks.php

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: gutenberg, bootstrap 3, block editor

rad-bootstrap-3-blocks/rad-bootstrap-3-blocks.php Passed 13 tests

"Rad Bootstrap 3 Blocks" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Simple blocks that add Bootstrap 3 features to the gutenberg editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected12,881 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
JSON5008,286
JavaScript142492801,734
Sass21861,251
CSS214720919
PHP10161409678
Markdown13013

PHP code Passed 2 tests

This is a very shot 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.36
Average class complexity17.40
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods54
▷ Static methods814.81%
▷ Public methods4175.93%
▷ Protected methods1120.37%
▷ Private methods23.70%
Functions12
▷ Named functions650.00%
▷ Anonymous functions650.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin