77% awesome-addons-for-elementor

Code Review | Awesome Addons For Elementor

WordPress plugin Awesome Addons For Elementor scored77%from 54 tests.

About plugin

  • Plugin page: awesome-addons-fo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2019
  • Latest release: Oct 29, 2019
  • Number of updates: 10
  • Update frequency: every 1.8 days
  • Top authors: awesomecoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,242 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.51MB] [CPU: ▼2.43ms] Passed 4 tests

An overview of server-side resources used by Awesome Addons For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5248.41 ▲10.46
Dashboard /wp-admin3.81 ▲0.5145.89 ▼2.03
Posts /wp-admin/edit.php3.93 ▲0.5752.79 ▲3.54
Add New Post /wp-admin/post-new.php6.39 ▲0.5193.32 ▼12.62
Media Library /wp-admin/upload.php3.74 ▲0.5139.34 ▲1.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Addons For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,035 ▲26415.57 ▲1.2116.31 ▲14.5557.79 ▲17.55
Dashboard /wp-admin2,250 ▲595.68 ▲0.77115.87 ▲9.4442.80 ▼0.70
Posts /wp-admin/edit.php2,135 ▲462.39 ▲0.3358.03 ▲18.2636.54 ▲1.15
Add New Post /wp-admin/post-new.php1,559 ▲4021.73 ▼1.34664.39 ▲15.2235.77 ▼18.61
Media Library /wp-admin/upload.php1,432 ▲414.97 ▲0.79119.79 ▲15.7240.69 ▼5.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/mailchimp-wp/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/admin/notices/notice.php
    • > /wp-content/plugins/awesome-addons-for-elementor/awesome-elementor-addons.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/quote/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/cards/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/instagram/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/text-animation/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/image-box/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/notifications/template/content-template.php
    • > /wp-content/plugins/awesome-addons-for-elementor/modules/glow-text-effects/template/content-template.php
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Awesome_Addons_is_wpf_activated() in wp-content/plugins/awesome-addons-for-elementor/modules/wpform/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/post-grid/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/flipbox/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Awesome_Addons_is_ninjaf_activated() in wp-content/plugins/awesome-addons-for-elementor/modules/ninjaform/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/buttons/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/gallery/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/glow-text-effects/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/awesome-addons-for-elementor/modules/helper-functions.php:14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-addons-for-elementor/modules/post-card/template/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Awesome_Addons_is_cf7_activated() in wp-content/plugins/awesome-addons-for-elementor/modules/cf7/template/view.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 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: A description for screenshot #13 is required in awesome-addons-for-elementor/assets to your readme.txt
  • Screenshots: Screenshot #14 (Screenshots 14) image missing
The official readme.txt is a good inspiration

awesome-addons-for-elementor/awesome-elementor-addons.php 77% from 13 tests

The primary PHP file in "Awesome Addons For Elementor" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-addons-for-elementor.php" instead of "awesome-elementor-addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin38,863 lines of code in 121 files:
LanguageFilesBlank linesComment linesLines of code
PHP862,4051,98415,518
CSS192,35124314,135
JavaScript129968076,086
SVG4103,124

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.51
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods409
▷ Static methods112.69%
▷ Public methods25361.86%
▷ Protected methods7418.09%
▷ Private methods8220.05%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/menu-icon.png1.76KB1.08KB▼ 38.86%
assets/images/icon-demo.png1.92KB0.77KB▼ 59.85%
admin/assets/images/icon-aae.png40.01KB24.82KB▼ 37.97%
assets/images/pricing-2.png29.03KB4.77KB▼ 83.58%