78% easy-edd-for-elementor

Code Review | Easy EDD For Elementor - EDD Addon for Elementor. Make EDD more usable with Elementor.

WordPress plugin Easy EDD For Elementor - EDD Addon for Elementor. Make EDD more usable with Elementor. scored78%from 54 tests.

About plugin

  • Plugin page: easy-edd-for-elem...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Aug 24, 2022
  • Latest release: Aug 24, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rafiahmedd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Easy EDD For Elementor - EDD Addon for Elementor. Make EDD more usable with Elementor.
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.90 ▼0.26
Dashboard /wp-admin3.31 ▼0.0443.49 ▼15.33
Posts /wp-admin/edit.php3.36 ▲0.0046.07 ▼0.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.04 ▼10.24
Media Library /wp-admin/upload.php3.23 ▲0.0035.78 ▲0.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy EDD For Elementor - EDD Addon for Elementor. Make EDD more usable with Elementor.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.37 ▲0.021.72 ▲0.1240.02 ▲0.16
Dashboard /wp-admin2,189 ▲95.55 ▼0.1391.58 ▲8.1038.36 ▼2.88
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0138.59 ▼0.0233.46 ▼2.45
Add New Post /wp-admin/post-new.php1,535 ▲718.18 ▼4.83627.72 ▼41.4760.76 ▼0.16
Media Library /wp-admin/upload.php1,394 ▼34.16 ▼0.0496.39 ▼7.1544.72 ▼0.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-edd-for-elementor/widgets/templates/card-template-one.php
    • > /wp-content/plugins/easy-edd-for-elementor/widgets/templates/grid-template.php
    • > /wp-content/plugins/easy-edd-for-elementor/widgets/templates/list-template.php
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/easy-edd-for-elementor/widgets/templates/card-template-one.php on line 32
    • > PHP Notice
      Undefined variable: products in wp-content/plugins/easy-edd-for-elementor/widgets/templates/grid-template.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-edd-for-elementor/widgets/templates/grid-template.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-edd-for-elementor/widgets/templates/card-template-one.php on line 31
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/easy-edd-for-elementor/widgets/templates/grid-template.php on line 3
    • > PHP Notice
      Undefined variable: products in wp-content/plugins/easy-edd-for-elementor/widgets/templates/list-template.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-edd-for-elementor/widgets/templates/grid-template.php on line 2
    • > PHP Notice
      Undefined variable: products in wp-content/plugins/easy-edd-for-elementor/widgets/templates/card-template-one.php on line 32
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/easy-edd-for-elementor/widgets/templates/list-template.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-edd-for-elementor/widgets/templates/card-template-one.php on line 31

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: edd, elementor edd addon, elementor edd, edd elementor addon, edd elementor

easy-edd-for-elementor/easy-edd-for-elementor.php 92% from 13 tests

"Easy EDD For Elementor - EDD Addon for Elementor. Make EDD more usable with Elementor." version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected1,197 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP162062951,173
JSON11017
CSS1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.29
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods611.32%
▷ Public methods4075.47%
▷ Protected methods47.55%
▷ Private methods916.98%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin