78% premium-addons-for-elementor

Code Review | Premium Addons for Elementor

WordPress plugin Premium Addons for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: premium-addons-fo...
  • Plugin version: 4.10.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 518
  • Update frequency: every 4.1 days
  • Top authors: leap13 (100%)

Code review

54 tests

User reviews

1504 reviews

Install metrics

700,000+ active /27,842,099 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.01MB] [CPU: ▲15.71ms] Passed 4 tests

This is a short check of server-side resources used by Premium Addons for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.40 ▲0.9356.54 ▲16.98
Dashboard /wp-admin4.34 ▲1.0066.72 ▲4.41
Posts /wp-admin/edit.php4.46 ▲1.1063.14 ▲15.52
Add New Post /wp-admin/post-new.php6.94 ▲1.06111.05 ▲25.94
Media Library /wp-admin/upload.php4.27 ▲1.0459.54 ▲26.04

Server storage [IO: ▲12.79MB] [DB: ▲0.05MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 588 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Premium Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲27013.42 ▼0.868.92 ▲7.2134.54 ▼9.03
Dashboard /wp-admin2,303 ▲1265.57 ▼0.0897.14 ▼2.2187.34 ▲42.81
Posts /wp-admin/edit.php2,227 ▲1242.11 ▲0.1341.52 ▲3.2135.12 ▼0.21
Add New Post /wp-admin/post-new.php1,792 ▲26622.19 ▼0.86670.32 ▲12.7756.70 ▼0.43
Media Library /wp-admin/upload.php1,520 ▲1174.13 ▼0.07101.31 ▲0.9284.12 ▲41.66
General /wp-admin/admin.php?page=premium-addons#tab=general9,9282.6476.43101.07
Global Features /wp-admin/admin.php?page=premium-addons#tab=features9,9322.7573.5852.44
White Labeling /wp-admin/admin.php?page=premium-addons#tab=white-label9,9142.6463.1772.79
Version Control /wp-admin/admin.php?page=premium-addons#tab=vcontrol9,9222.6358.2657.05
System Info /wp-admin/admin.php?page=premium-addons#tab=system-info9,9202.6457.5155.81
Widgets & Add-ons /wp-admin/admin.php?page=premium-addons#tab=elements10,1542.6257.69104.04
Integrations /wp-admin/admin.php?page=premium-addons#tab=integrations9,9312.6253.9153.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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
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
Almost there! Just fix the following items
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-content.php
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-filters.php
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-tabs.php
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-preview.php
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-filters-item.php
    • > /wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-templates.php
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-keywords.php:11
    • > PHP Warning
      require_once(PREMIUM_ADDONS_PATHwidgets/dep/urlopen.php): failed to open stream: No such file or directory in wp-content/plugins/premium-addons-for-elementor/includes/assets-manager.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/premium-addons-for-elementor/admin/includes/templates/info.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/premium-addons-for-elementor/includes/templates/scripts/template-modal-search-field.php:8
    • > PHP Warning
      require_once(PREMIUM_ADDONS_PATHincludes/pa-display-conditions/pa-controls-handler.php): failed to open stream: No such file or directory in wp-content/plugins/premium-addons-for-elementor/modules/pa-display-conditions/module.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'PremiumAddons\\Includes\\Helper_Functions' not found in wp-content/plugins/premium-addons-for-elementor/admin/includes/elements.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/premium-addons-for-elementor/modules/woocommerce/templates/quick-view-modal.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'PREMIUM_ADDONS_PATHwidgets/dep/urlopen.php' (include_path='.:/usr/share/php') in wp-content/plugins/premium-addons-for-elementor/includes/assets-manager.php on line 12
    • > PHP Warning
      Use of undefined constant PREMIUM_ADDONS_PATH - assumed 'PREMIUM_ADDONS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/premium-addons-for-elementor/includes/assets-manager.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PremiumAddons\\Includes\\add_action() in wp-content/plugins/premium-addons-for-elementor/includes/class-pa-core.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Premium Addons Dashboard Tab) image required
The official readme.txt is a good inspiration

premium-addons-for-elementor/premium-addons-for-elementor.php 92% from 13 tests

The principal PHP file in "Premium Addons for Elementor" v. 4.10.15 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected199,719 lines of code in 526 files:
LanguageFilesBlank linesComment linesLines of code
PHP19615,98713,01194,997
CSS16910,5101,47766,191
JavaScript14010,4693,13938,038
XML1280267
SVG2000226

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.34
▷ Minimum class complexity1.00
▷ Maximum class complexity211.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces22
Interfaces0
Traits0
Classes148
▷ Abstract classes64.05%
▷ Concrete classes14295.95%
▷ Final classes00.00%
Methods1,383
▷ Static methods15711.35%
▷ Public methods1,03975.13%
▷ Protected methods15511.21%
▷ Private methods18913.67%
Functions32
▷ Named functions2062.50%
▷ Anonymous functions1237.50%
Constants28
▷ Global constants1242.86%
▷ Class constants1657.14%
▷ Public constants16100.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
30 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/images/prettyPhoto/default/sprite_x.png1.07KB0.11KB▼ 89.79%
assets/frontend/images/prettyPhoto/default/sprite_next.png1.33KB0.39KB▼ 70.69%
assets/frontend/images/prettyPhoto/facebook/contentPatternBottom.png0.14KB0.11KB▼ 21.13%
assets/frontend/images/prettyPhoto/facebook/sprite.png4.13KB2.26KB▼ 45.33%
assets/frontend/images/prettyPhoto/default/sprite_y.png1.13KB0.13KB▼ 88.81%