84% block-widgets-monster

Code Review | Block Widgets Monster

WordPress plugin Block Widgets Monster scored 84% from 54 tests.

About plugin

  • Plugin page: block-widgets-mon...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Aug 14, 2023
  • Number of updates: 19
  • Update frequency: every 35.3 days
  • Top authors: rgblab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,517 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.27ms] Passed 4 tests

Server-side resources used by Block Widgets Monster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.69 ▼4.59
Dashboard /wp-admin3.40 ▲0.0947.06 ▼3.16
Posts /wp-admin/edit.php3.45 ▲0.0945.97 ▼1.26
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.32 ▲8.16
Media Library /wp-admin/upload.php3.32 ▲0.0936.72 ▼0.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_block_widgets_monster
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Block Widgets Monster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.051.65 ▲0.0540.82 ▼1.15
Dashboard /wp-admin2,206 ▲184.85 ▼0.03107.90 ▲3.8537.90 ▼1.87
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0138.72 ▲0.2935.38 ▲5.01
Add New Post /wp-admin/post-new.php1,533 ▲1923.44 ▲5.92658.94 ▲31.1661.78 ▲11.13
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.00102.77 ▲4.1647.48 ▲1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_block_widgets_monster
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-widgets-monster/blocks/woo-blocks.php:26
    • > PHP Notice
      Undefined variable: rows in wp-content/plugins/block-widgets-monster/blocks/woo-blocks.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-widgets-monster/block-widgets-monster.php:47
    • > PHP Notice
      Undefined variable: rows in wp-content/plugins/block-widgets-monster/blocks/woo-blocks.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-widgets-monster/blocks/wp-blocks.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/block-widgets-monster/define.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-widgets-monster/widgets/woo-widgets.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-widgets-monster/class-bwm-widget.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/block-widgets-monster/widgets/wp-widgets.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: theme development, woocommerce widget bundle, widget, debug, woocommerce monster widget...

block-widgets-monster/block-widgets-monster.php 92% from 13 tests

The main file in "Block Widgets Monster" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,431 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP81462991,362
JavaScript212469

PHP code Passed 2 tests

Analyzing 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.22
Average class complexity25.00
▷ Minimum class complexity5.00
▷ Maximum class complexity45.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin