90% mighty-blocks

Code Review | Mighty Blocks - Gutenberg on Steroids

WordPress plugin Mighty Blocks - Gutenberg on Steroids scored90%from 54 tests.

About plugin

  • Plugin page: mighty-blocks
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Oct 22, 2019
  • Number of updates: 10
  • Update frequency: every 3.3 days
  • Top authors: mightyblocks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,074 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.08ms] Passed 4 tests

An overview of server-side resources used by Mighty Blocks - Gutenberg on Steroids
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.46 ▼1.50
Dashboard /wp-admin3.33 ▼0.0250.93 ▼16.72
Posts /wp-admin/edit.php3.38 ▲0.0247.52 ▼6.18
Add New Post /wp-admin/post-new.php6.20 ▲0.3188.78 ▼7.91
Media Library /wp-admin/upload.php3.25 ▲0.0240.15 ▲4.45

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Mighty Blocks - Gutenberg on Steroids
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.951.92 ▲0.0443.70 ▲3.75
Dashboard /wp-admin2,206 ▲154.84 ▼0.04105.03 ▼1.6941.78 ▼0.34
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.1836.14 ▼1.4733.67 ▼2.03
Add New Post /wp-admin/post-new.php1,521 ▲124.41 ▲1.08804.67 ▲148.7763.12 ▲5.80
Media Library /wp-admin/upload.php1,388 ▲34.14 ▼0.07117.33 ▲17.2549.37 ▲3.75

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #6 (Background Controls)
The official readme.txt might help

mighty-blocks/mighty-blocks.php Passed 13 tests

Analyzing the main PHP file in "Mighty Blocks - Gutenberg on Steroids" version 2.0.0
22 characters long description:
Gutenberg on Steroids.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,417 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP24945071,972
JavaScript26729321,214
CSS2250231

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions50
▷ Named functions4794.00%
▷ Anonymous functions36.00%
Constants0
▷ Global constants00.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 files were detected