10% massive-addons-for-elementor

Code Review | Massive Addons for Elementor

WordPress plugin Massive Addons for Elementor scored10%from 54 tests.

About plugin

  • Plugin page: massive-addons-fo...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2018
  • Latest release: Mar 15, 2019
  • Number of updates: 6
  • Update frequency: every 40.3 days
  • Top authors: blocksera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,629 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Massive_Elementor::activate() should not be called statically

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.60ms] Passed 4 tests

Server-side resources used by Massive Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.00 ▼4.14
Dashboard /wp-admin3.41 ▲0.0653.86 ▼12.57
Posts /wp-admin/edit.php3.52 ▲0.1651.99 ▲1.49
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.00 ▼10.83
Media Library /wp-admin/upload.php3.33 ▲0.1039.40 ▲1.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 22 new options
New WordPress options
widget_recent-posts
mae_divider
mae_google_maps_api
mae_progress_bar
mae_content_box
mae_info_box
mae_image_hover
db_upgraded
mae_accordion
mae_button
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Massive Addons for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.34 ▼0.011.81 ▼0.1142.81 ▼2.22
Dashboard /wp-admin2,208 ▲345.59 ▲0.0186.21 ▼14.5743.63 ▲0.86
Posts /wp-admin/edit.php2,107 ▲72.08 ▲0.1237.07 ▼1.6436.35 ▼0.38
Add New Post /wp-admin/post-new.php1,536 ▲823.70 ▲0.71694.17 ▲0.8454.18 ▼2.35
Media Library /wp-admin/upload.php1,413 ▲134.17 ▲0.05101.10 ▼9.9446.69 ▼2.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Massive_Elementor::deactivate() should not be called statically
  • The uninstall procedure has failed, leaving 22 options in the database
    • mae_button
    • mae_accordion
    • mae_animated_box
    • mae_content_box
    • mae_countdown
    • mae_divider
    • can_compress_scripts
    • mae_video
    • widget_theysaidso_widget
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/massive-addons-for-elementor/includes/admin-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: elementor widget, elementor, addons, elementor addons, page builder addons

massive-addons-for-elementor/massive-addons-for-elementor.php 85% from 13 tests

"Massive Addons for Elementor" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin11,511 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP17830306,405
CSS183021433,826
JavaScript14260871,280

PHP code Passed 2 tests

A short review of 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.18
Average class complexity10.60
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods133
▷ Static methods10.75%
▷ Public methods7858.65%
▷ Protected methods5541.35%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/infobox/heart.png11.83KB4.59KB▼ 61.15%
widgets/video/play.png7.62KB4.84KB▼ 36.50%
assets/admin/img/mae.png8.90KB4.77KB▼ 46.39%