84% easy-addons

Code Review | EasyAddons - For Elementor page Builder

WordPress plugin EasyAddons - For Elementor page Builder scored84%from 54 tests.

About plugin

  • Plugin page: easy-addons
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Apr 27, 2023
  • Number of updates: 7
  • Update frequency: every 32.7 days
  • Top authors: devtanbir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.16ms] Passed 4 tests

A check of server-side resources used by EasyAddons - For Elementor page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.41 ▼0.45
Dashboard /wp-admin3.33 ▼0.0243.91 ▼14.84
Posts /wp-admin/edit.php3.38 ▲0.0244.08 ▼0.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.01 ▼0.12
Media Library /wp-admin/upload.php3.25 ▲0.0233.13 ▼0.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

EasyAddons - For Elementor page Builder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲20914.64 ▲0.298.04 ▲6.4448.33 ▲2.44
Dashboard /wp-admin2,231 ▲515.37 ▼0.23117.22 ▲30.0272.73 ▲29.69
Posts /wp-admin/edit.php2,151 ▲512.52 ▲0.4949.06 ▲13.0234.09 ▲0.39
Add New Post /wp-admin/post-new.php1,585 ▲5925.13 ▲2.22762.38 ▲79.1237.56 ▼23.58
Media Library /wp-admin/upload.php1,439 ▲484.94 ▲0.74109.76 ▲10.6383.81 ▲37.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-addons/includes/enqueue.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-addons/includes/widgets-register.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-addons/includes/settings/settings-elements.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-addons/includes/settings/settings-general.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: easy addons, usefuladdons, easyaddons, addons, elementor...

easy-addons/easy-addons.php 92% from 13 tests

The main file in "EasyAddons - For Elementor page Builder" v. 2.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,880 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49577616,007
CSS8482604,268
PHP122511153,933
SVG2002,672

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.86
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods81
▷ Static methods11.23%
▷ Public methods3239.51%
▷ Protected methods1113.58%
▷ Private methods3846.91%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/ea-logo-icon.png9.20KB6.32KB▼ 31.29%