77% easy-addons-for-elementor

Code Review | Easy Addons for Elementor

WordPress plugin Easy Addons for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: easy-addons-for-e...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: May 1, 2022
  • Latest release: Feb 11, 2023
  • Number of updates: 25
  • Update frequency: every 11.5 days
  • Top authors: babuwpd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 total downloads

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: ▼3.06ms] Passed 4 tests

A check of server-side resources used by Easy Addons for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.84 ▼4.81
Dashboard /wp-admin3.40 ▲0.1050.49 ▼1.44
Posts /wp-admin/edit.php3.52 ▲0.1651.69 ▼4.09
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.44 ▼1.88
Media Library /wp-admin/upload.php3.33 ▲0.1039.49 ▲0.94

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Addons for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.80 ▼0.758.09 ▲6.3040.65 ▼7.54
Dashboard /wp-admin2,202 ▲255.54 ▼0.1482.86 ▼13.5738.01 ▼6.56
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0938.90 ▲0.3935.27 ▼1.23
Add New Post /wp-admin/post-new.php1,530 ▲423.53 ▼0.20679.55 ▼17.3351.39 ▲0.00
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0095.38 ▼5.6945.07 ▲1.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-addons-for-elementor/admin/partials/easy-addons-admin-display.php
  • 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-addons-for-elementor/widgets/team/teams/team-3.php on line 5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-addons-for-elementor/widgets/team/teams/team-2.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/service/services/service-3.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/post/posts/post-3.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/counter/counters/counter-3.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/team/teams/team-1.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/counter/counters/counter-2.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/post/posts/post-1.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-addons-for-elementor/widgets/service/services/service-2.php:5
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-addons-for-elementor/widgets/team/teams/team-3.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

easy-addons-for-elementor/easy-addons.php 62% from 13 tests

The primary PHP file in "Easy Addons for Elementor" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.2")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.2")
  • Description: The description should be shorter than 140 characters (currently 176 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-addons-for-elementor.php" instead of "easy-addons.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin23,032 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP418051,3146,027
CSS221,7431725,154
JavaScript174957002,299

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.59
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods107
▷ Static methods21.87%
▷ Public methods8175.70%
▷ Protected methods2018.69%
▷ Private methods65.61%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin