83% maxi-blocks

Code Review | MaxiBlocks Free Page Builder & Template Library

WordPress plugin MaxiBlocks Free Page Builder & Template Library scored83%from 54 tests.

About plugin

  • Plugin page: maxi-blocks
  • Plugin version: 1.5.5
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Nov 22, 2023
  • Number of updates: 50
  • Update frequency: every 4.6 days
  • Top authors: ckp267 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /4,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.34ms] Passed 4 tests

An overview of server-side resources used by MaxiBlocks Free Page Builder & Template Library
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.65 ▼3.33
Dashboard /wp-admin3.31 ▲0.0043.96 ▼10.47
Posts /wp-admin/edit.php3.36 ▲0.0049.37 ▲5.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.61 ▼2.77
Media Library /wp-admin/upload.php3.23 ▲0.0034.88 ▲3.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 469 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by MaxiBlocks Free Page Builder & Template Library
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.10 ▼0.641.51 ▼0.2835.59 ▼5.89
Dashboard /wp-admin2,195 ▲185.58 ▼0.0890.47 ▼2.7240.32 ▲1.35
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0638.73 ▲4.1735.61 ▲3.08
Add New Post /wp-admin/post-new.php1,526 ▼1323.77 ▲0.59641.91 ▲53.5545.97 ▼2.49
Media Library /wp-admin/upload.php1,400 ▲64.19 ▲0.0398.55 ▼0.3940.96 ▼1.16

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

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
  • 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'MAXI_PLUGIN_DIR_PATHcore/utils/get-last-breakpoint-attribute.php' (include_path='.:/usr/share/php') in wp-content/plugins/maxi-blocks/core/class-maxi-style-cards.php on line 2
    • > PHP Warning
      Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_size_styles.php on line 3
    • > PHP Warning
      require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_palette_color.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/utils/get_color_rgba_string.php on line 3
    • > PHP Warning
      Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/class-maxi-local-fonts.php on line 2
    • > PHP Warning
      Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_transition_styles.php on line 3
    • > PHP Warning
      require_once(MAXI_PLUGIN_DIR_PATHcore/utils/get-last-breakpoint-attribute.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/class-maxi-style-cards.php on line 2
    • > PHP Warning
      require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_last_breakpoint_attribute.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_size_styles.php on line 3
    • > PHP Warning
      Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/utils/get_default_attribute.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'MAXI_PLUGIN_DIR_PATHcore/blocks/utils/convert_aspect_ratio_to_decimal.php' (include_path='.:/usr/share/php') in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_aspect_ratio.php on line 3
    • > PHP Warning
      require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_attribute_key.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/utils/get_attributes_value.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

maxi-blocks/plugin.php 85% from 13 tests

The main file in "MaxiBlocks Free Page Builder & Template Library" v. 1.5.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 389 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maxi-blocks.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin256,270 lines of code in 437 files:
LanguageFilesBlank linesComment linesLines of code
JSON16400236,361
PHP952,9401,77815,857
JavaScript1275301563,111
Sass1170636
SVG403259
CSS460046

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity37.73
▷ Minimum class complexity1.00
▷ Maximum class complexity307.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods327
▷ Static methods15948.62%
▷ Public methods31596.33%
▷ Protected methods00.00%
▷ Private methods123.67%
Functions239
▷ Named functions12753.14%
▷ Anonymous functions11246.86%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.59MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/block-preview/slider.png10.21KB3.68KB▼ 63.92%
img/block-preview/divider.png4.23KB0.86KB▼ 79.58%
img/block-preview/search.png9.43KB2.52KB▼ 73.24%
img/block-preview/button.png20.74KB7.53KB▼ 63.70%
img/block-preview/group.png9.65KB2.73KB▼ 71.68%