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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.73 ▼0.98 |
Dashboard /wp-admin | 3.43 ▲0.08 | 43.94 ▼16.11 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 46.18 ▼5.96 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 77.39 ▼15.79 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 31.08 ▼5.90 |
Max Addons /wp-admin/admin.php?page=mab-settings | 3.33 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.42 ▼0.22 | 1.65 ▲0.11 | 43.82 ▲4.61 |
Dashboard /wp-admin | 2,216 ▲25 | 4.88 ▼1.02 | 95.97 ▼5.62 | 38.89 ▼4.92 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.05 ▲0.02 | 36.02 ▼5.22 | 31.58 ▼4.26 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.39 ▲5.99 | 640.85 ▼24.47 | 52.69 ▲1.60 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.00 | 96.21 ▼12.32 | 45.19 ▼3.46 |
Max Addons /wp-admin/admin.php?page=mab-settings | 993 | 2.04 | 25.24 | 28.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,181 | 531 | 8,422 |
JavaScript | 4 | 0 | 0 | 2,076 |
CSS | 5 | 141 | 12 | 1,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 code | 0.34 |
Average class complexity | 33.57 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 169 | |
▷ Static methods | 30 | 17.75% |
▷ Public methods | 166 | 98.22% |
▷ Protected methods | 1 | 0.59% |
▷ Private methods | 2 | 1.18% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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