84% piotnet-addons-for-elementor

Code Review | Piotnet Addons For Elementor

WordPress plugin Piotnet Addons For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: piotnet-addons-fo...
  • Plugin version: 2.4.25
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 72
  • Update frequency: every 25.3 days
  • Top authors: piotnetdotcom (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

40,000+ active /434,710 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.15MB] [CPU: ▼2.98ms] Passed 4 tests

Analyzing server-side resources used by Piotnet Addons For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1847.19 ▲8.13
Dashboard /wp-admin3.45 ▲0.1149.15 ▼14.15
Posts /wp-admin/edit.php3.57 ▲0.2153.97 ▲8.01
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.11 ▼13.90
Media Library /wp-admin/upload.php3.38 ▲0.1539.48 ▲8.66

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 71 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

This is an overview of browser requirements for Piotnet Addons For Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13013.43 ▼0.9710.29 ▲8.6241.79 ▼2.32
Dashboard /wp-admin2,212 ▲325.54 ▼0.1487.15 ▼15.6337.59 ▼9.49
Posts /wp-admin/edit.php2,120 ▲201.99 ▲0.0338.21 ▼0.0334.66 ▼6.38
Add New Post /wp-admin/post-new.php1,543 ▲1723.10 ▼0.27648.95 ▲1.2361.53 ▲13.15
Media Library /wp-admin/upload.php1,420 ▲264.28 ▲0.0698.16 ▼1.0144.46 ▲2.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/piotnet-addons-for-elementor/controls/controls-manager.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/piotnet-addons-for-elementor/controls/controls-manager.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/piotnet-addons-for-elementor/widgets/pafe-product-tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/piotnet-addons-for-elementor/widgets/pafe-dual-color-headline.php:3
    • > PHP Warning
      Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/piotnet-addons-for-elementor/controls/controls-manager.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/piotnet-addons-for-elementor/controls/pafe-gradient-button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/piotnet-addons-for-elementor/controls/controls-manager.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/piotnet-addons-for-elementor/widgets/pafe-posts-list.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/piotnet-addons-for-elementor/widgets/pafe-image-accordion.php:2
    • > PHP Warning
      Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/piotnet-addons-for-elementor/controls/controls-manager.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gradient button, elementor addons, gradient text, image carousel multiple custom urls, pafe

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

The main PHP file in "Piotnet Addons For Elementor" ver. 2.4.25 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected13,539 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP27782609,686
JavaScript196022072,438
CSS18218111,414
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.83
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes14.17%
Methods200
▷ Static methods42.00%
▷ Public methods16180.50%
▷ Protected methods3819.00%
▷ Private methods10.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/piotnet-logo.png9.58KB2.99KB▼ 68.80%