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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼1.78ms] Passed 4 tests
Analyzing server-side resources used by Mega Elements - Addons for Elementor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 50.18 ▲2.45 |
Dashboard /wp-admin | 3.76 ▲0.46 | 53.35 ▼0.24 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 61.12 ▲11.86 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 92.51 ▼12.06 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 39.04 ▲2.73 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Mega Elements - Addons for Elementor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲258 | 14.39 ▼0.22 | 1.61 ▼0.15 | 39.98 ▼5.93 |
Dashboard /wp-admin | 2,425 ▲248 | 6.22 ▲0.69 | 114.39 ▲8.34 | 42.04 ▼0.73 |
Posts /wp-admin/edit.php | 2,357 ▲260 | 3.56 ▲1.54 | 52.63 ▲14.18 | 28.91 ▼5.06 |
Add New Post /wp-admin/post-new.php | 1,719 ▲191 | 22.27 ▼0.86 | 624.39 ▼46.34 | 36.92 ▼17.30 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.19 ▼0.04 | 83.23 ▼23.10 | 44.67 ▲1.63 |
Widgets /wp-admin/admin.php?page=mega-elements#mega-elements-widgets | 1,901 | 3.28 | 44.87 | 94.16 |
General /wp-admin/admin.php?page=mega-elements#mega-elements-general | 1,832 | 3.41 | 47.67 | 75.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant MEGA_ELEMENTS_ADDONS_FOR_ELEMENTOR_URL - assumed 'MEGA_ELEMENTS_ADDONS_FOR_ELEMENTOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mega-elements-addons-for-elementor/templates/admin/dashboard-general.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mega-elements-addons-for-elementor/templates/admin/dashboard-general.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mega-elements-addons-for-elementor/includes/meafe-helpers.php:302
- > PHP Fatal error
Uncaught Error: Class 'MegaElementsAddonsForElementor\\Widgets_Manager' not found in wp-content/plugins/mega-elements-addons-for-elementor/templates/admin/dashboard-widgets.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: elementor addons, mega elements, elementor widgets, elementor, elements
mega-elements-addons-for-elementor/mega-elements-addons-for-elementor.php 92% from 13 tests
Analyzing the main PHP file in "Mega Elements - Addons for Elementor" version 1.1.9
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
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
There were no executable files found in this plugin44,654 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 3,498 | 1,184 | 29,053 |
CSS | 35 | 1,663 | 192 | 9,755 |
JavaScript | 17 | 177 | 97 | 3,921 |
Sass | 3 | 383 | 12 | 1,891 |
SVG | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 27.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 395 | |
▷ Static methods | 29 | 7.34% |
▷ Public methods | 262 | 66.33% |
▷ Protected methods | 130 | 32.91% |
▷ Private methods | 3 | 0.76% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/dashboard/images/doc-img.png | 27.38KB | 8.71KB | ▼ 68.17% |