83% max-addons-for-bricks

Code Review | Max Addons for Bricks Builder

WordPress plugin Max Addons for Bricks Builder scored83%from 54 tests.

About plugin

  • Plugin page: max-addons-for-br...
  • Plugin version: 1.3.15
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 19, 2021
  • Latest release: Sep 21, 2022
  • Number of updates: 52
  • Update frequency: every 9.5 days
  • Top authors: bloompixel (55.77%)simrandeep (46.15%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active /6,041 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.11MB] [CPU: ▼10.94ms] Passed 4 tests

An overview of server-side resources used by Max Addons for Bricks Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.73 ▼0.98
Dashboard /wp-admin3.43 ▲0.0843.94 ▼16.11
Posts /wp-admin/edit.php3.54 ▲0.1846.18 ▼5.96
Add New Post /wp-admin/post-new.php6.01 ▲0.1277.39 ▼15.79
Media Library /wp-admin/upload.php3.35 ▲0.1231.08 ▼5.90
Max Addons /wp-admin/admin.php?page=mab-settings3.3330.61

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Max Addons for Bricks Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.42 ▼0.221.65 ▲0.1143.82 ▲4.61
Dashboard /wp-admin2,216 ▲254.88 ▼1.0295.97 ▼5.6238.89 ▼4.92
Posts /wp-admin/edit.php2,101 ▲92.05 ▲0.0236.02 ▼5.2231.58 ▼4.26
Add New Post /wp-admin/post-new.php1,544 ▲3023.39 ▲5.99640.85 ▼24.4752.69 ▲1.60
Media Library /wp-admin/upload.php1,395 ▲44.22 ▼0.0096.21 ▼12.3245.19 ▼3.46
Max Addons /wp-admin/admin.php?page=mab-settings9932.0425.2428.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/max-addons-for-bricks/max-addons-bricks.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'MaxAddons\\Classes\\MAB_Admin_Settings' not found in wp-content/plugins/max-addons-for-bricks/includes/admin/admin-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MaxAddons\\Classes\\MAB_Admin_Settings' not found in wp-content/plugins/max-addons-for-bricks/includes/admin/admin-settings-elements.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MaxAddons\\Classes\\is_multisite() in wp-content/plugins/max-addons-for-bricks/classes/class-mab-admin-settings.php:400

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% 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:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

max-addons-for-bricks/max-addons-bricks.php 69% from 13 tests

The main PHP file in "Max Addons for Bricks Builder" ver. 1.3.15 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("max-addons-for-bricks.php" instead of "max-addons-bricks.php")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,546 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,1815318,422
JavaScript4002,076
CSS5141121,048

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.57
▷ Minimum class complexity5.00
▷ Maximum class complexity62.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods169
▷ Static methods3017.75%
▷ Public methods16698.22%
▷ Protected methods10.59%
▷ Private methods21.18%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected