83% prime-addons-for-elementor

Code Review | Prime Addons for Elementor

WordPress plugin Prime Addons for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: prime-addons-for-...
  • Plugin version: 1.0.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2022
  • Latest release: May 24, 2023
  • Number of updates: 31
  • Update frequency: every 13.6 days
  • Top authors: rabmalin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,554 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.09ms] Passed 4 tests

An overview of server-side resources used by Prime Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.34 ▼5.55
Dashboard /wp-admin3.37 ▲0.0744.28 ▼8.24
Posts /wp-admin/edit.php3.49 ▲0.1347.44 ▲5.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.30 ▲7.17
Media Library /wp-admin/upload.php3.30 ▲0.0737.85 ▲4.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Prime Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.29 ▼0.441.49 ▼0.2242.70 ▼2.79
Dashboard /wp-admin2,215 ▲345.64 ▼0.0692.14 ▼13.5136.36 ▲0.21
Posts /wp-admin/edit.php2,117 ▲172.04 ▲0.0240.59 ▲3.7738.00 ▲0.61
Add New Post /wp-admin/post-new.php1,538 ▲1023.21 ▲0.03654.79 ▲44.6448.83 ▲0.13
Media Library /wp-admin/upload.php1,420 ▲204.20 ▼0.0496.11 ▼1.8041.17 ▼2.25

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'PAE_PLUGIN_URI/includes/global-blocks/class-global-blocks.php' (include_path='.:/usr/share/php') in wp-content/plugins/prime-addons-for-elementor/includes/global-blocks/init.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'PAE_PLUGIN_URI/includes/global-blocks/init.php' (include_path='.:/usr/share/php') in wp-content/plugins/prime-addons-for-elementor/plugin.php on line 12
    • > PHP Warning
      require(PAE_PLUGIN_URI/includes/global-blocks/init.php): failed to open stream: No such file or directory in wp-content/plugins/prime-addons-for-elementor/plugin.php on line 12
    • > PHP Warning
      Use of undefined constant PAE_PLUGIN_URI - assumed 'PAE_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/prime-addons-for-elementor/includes/global-blocks/init.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/prime-addons-for-elementor/includes/global-blocks/global-blocks-widget.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prime-addons-for-elementor/includes/controls/parallax.php:73
    • > PHP Warning
      Use of undefined constant PAE_PLUGIN_URI - assumed 'PAE_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/prime-addons-for-elementor/plugin.php on line 12
    • > PHP Warning
      Use of undefined constant PAE_PLUGIN_URI - assumed 'PAE_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/prime-addons-for-elementor/includes/controls/init.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prime-addons-for-elementor/includes/controls/opacity.php:46
    • > PHP Fatal error
      require_once(): Failed opening required 'PAE_PLUGIN_URI/includes/controls/opacity.php' (include_path='.:/usr/share/php') in wp-content/plugins/prime-addons-for-elementor/includes/controls/init.php on line 3

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Settings) image required
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

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

The main file in "Prime Addons for Elementor" v. 1.0.14 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 245 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin25,424 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP512,6882,13715,715
JavaScript111,7212,8357,733
CSS1311761,893
JSON20083

PHP code Passed 2 tests

Analyzing 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 complexity15.08
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes12.63%
Methods337
▷ Static methods5215.43%
▷ Public methods26478.34%
▷ Protected methods6820.18%
▷ Private methods51.48%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected