84% mama-addons-for-elementor

Code Review | Mama Addons for Elementor Page Builder

WordPress plugin Mama Addons for Elementor Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: mama-addons-for-e...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 4
  • Update frequency: every 8.0 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.48ms] Passed 4 tests

Server-side resources used by Mama Addons for Elementor Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.31 ▼5.86
Dashboard /wp-admin3.33 ▲0.0244.20 ▼7.29
Posts /wp-admin/edit.php3.38 ▲0.0248.36 ▼1.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.72 ▼15.78
Media Library /wp-admin/upload.php3.25 ▲0.0234.97 ▲2.54

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Mama Addons for Elementor Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.22 ▼1.391.72 ▼0.1341.14 ▼3.86
Dashboard /wp-admin2,224 ▲365.84 ▲0.9894.89 ▼11.6740.04 ▼2.32
Posts /wp-admin/edit.php2,106 ▲172.05 ▲0.0640.92 ▼0.6535.80 ▼0.59
Add New Post /wp-admin/post-new.php1,546 ▲2523.37 ▲0.32581.67 ▼59.4851.24 ▼8.87
Media Library /wp-admin/upload.php1,409 ▲214.31 ▲0.1097.35 ▼0.3142.32 ▼0.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MamaAddonsElementor\\add_action() in wp-content/plugins/mama-addons-for-elementor/includes/plugin.php:126

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: widget, elementor addon, elementor widget, addons, elements...

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

"Mama Addons for Elementor Page Builder" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("mama-addons-for-elementor.php" instead of "mama-addons-elementor.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
Good job! No executable or dangerous file extensions detected24,583 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,97822410,423
SVG40129,388
PHP187901874,511
JavaScript53037261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods108
▷ Static methods10.93%
▷ Public methods7670.37%
▷ Protected methods3128.70%
▷ Private methods10.93%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/instructions/elementor-add-templates.png7.29KB4.14KB▼ 43.22%
assets/images/default/icon.png199.78KB55.99KB▼ 71.98%
assets/images/instructions/elementor-insert-templates.png37.32KB15.76KB▼ 57.78%