78% maan-elementor-addons

Code Review | Maan Addons For Elementor

WordPress plugin Maan Addons For Elementor scored78%from 54 tests.

About plugin

  • Plugin page: maan-elementor-ad...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2022
  • Latest release: Mar 23, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: maantheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.54MB] [CPU: ▲8.16ms] Passed 4 tests

Analyzing server-side resources used by Maan Addons For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.97 ▲1.5152.52 ▲11.67
Dashboard /wp-admin4.86 ▲1.5660.81 ▲8.23
Posts /wp-admin/edit.php4.91 ▲1.5668.48 ▲20.01
Add New Post /wp-admin/post-new.php7.44 ▲1.56104.63 ▲0.60
Media Library /wp-admin/upload.php4.78 ▲1.5647.66 ▲12.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 209 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
maan_elementor_addons_installed
can_compress_scripts
maan_elementor_addons_version
db_upgraded
_maan_elementor_addons
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Maan Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.35 ▼0.011.73 ▲0.1643.82 ▲3.36
Dashboard /wp-admin2,234 ▲605.67 ▲0.0996.66 ▼8.2847.81 ▲0.67
Posts /wp-admin/edit.php2,142 ▲422.15 ▲0.1439.74 ▲3.3938.45 ▲5.13
Add New Post /wp-admin/post-new.php1,564 ▲3823.19 ▲0.25640.39 ▼18.4958.84 ▲4.55
Media Library /wp-admin/upload.php1,445 ▲484.17 ▼0.0498.92 ▼6.1046.19 ▲3.32
Features /wp-admin/admin.php?page=maan-elementor-addons#tab=features1,1553.8653.4039.21
Welcome /wp-admin/admin.php?page=maan-elementor-addons#tab=welcome1,1463.4349.0729.03

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • maan_elementor_addons_version
    • can_compress_scripts
    • maan_elementor_addons_installed
    • _maan_elementor_addons
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout3.php
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout1.php
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout2.php
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/service/layout1.php
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/service/layout2.php
    • > /wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout4.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/maan-elementor-addons/elementor/widgets/callToAction/layout5.php:2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout3.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout1.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/maan-elementor-addons/elementor/widgets/callToAction/layout3.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout3.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout2.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout1.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/maan-elementor-addons/elementor/widgets/team/layout4.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/maan-elementor-addons/elementor/widgets/callToAction/layout2.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/maan-elementor-addons/elementor/widgets/callToAction/layout1.php:8

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: elementor addons, wordpress woocommerce builder, wp elementor addon

maan-elementor-addons/maan-elementor-addnons.php 77% from 13 tests

The main PHP file in "Maan Addons For Elementor" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("maan-elementor-addons.php" instead of "maan-elementor-addnons.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
Everything looks great! No dangerous files found in this plugin43,564 lines of code in 180 files:
LanguageFilesBlank linesComment linesLines of code
PHP1203,6541,90416,769
CSS105505816,961
Sass181,08536,780
JavaScript91,2905206,547
PO File203,1983,5916,500
JSON1005
SVG2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity21.97
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes78
▷ Abstract classes22.56%
▷ Concrete classes7697.44%
▷ Final classes22.63%
Methods347
▷ Static methods6117.58%
▷ Public methods33897.41%
▷ Protected methods61.73%
▷ Private methods30.86%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/Admin/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%