84% edd-variable-pricing-descriptions

Code Review | Easy Digital Downloads - Variable Pricing Descriptions

WordPress plugin Easy Digital Downloads - Variable Pricing Descriptions scored84%from 54 tests.

About plugin

  • Plugin page: edd-variable-pric...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Nov 2, 2022
  • Number of updates: 17
  • Update frequency: every 206.4 days
  • Top authors: sumobi (94.12%)cklosows (11.76%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /8,820 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 gracefully, with no errors

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

A check of server-side resources used by Easy Digital Downloads - Variable Pricing Descriptions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.65 ▼5.20
Dashboard /wp-admin3.32 ▲0.0143.74 ▼6.20
Posts /wp-admin/edit.php3.37 ▲0.0145.26 ▼1.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.58 ▼8.49
Media Library /wp-admin/upload.php3.24 ▲0.0136.47 ▲2.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Digital Downloads - Variable Pricing Descriptions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.14 ▼0.211.72 ▲0.0437.79 ▼9.80
Dashboard /wp-admin2,195 ▲215.55 ▲0.0286.95 ▼13.4837.80 ▼8.79
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0439.38 ▲1.7237.86 ▲2.20
Add New Post /wp-admin/post-new.php1,526 ▼023.63 ▲0.25684.26 ▼59.5750.87 ▲0.50
Media Library /wp-admin/upload.php1,400 ▲64.18 ▲0.0197.67 ▼4.5345.75 ▼2.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-variable-pricing-descriptions/edd-variable-pricing-descriptions.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: descriptions, customize product, variations, product descriptions, easy digital downloads

edd-variable-pricing-descriptions/edd-variable-pricing-descriptions.php Passed 13 tests

The main PHP script in "Easy Digital Downloads - Variable Pricing Descriptions" version 1.1 is automatically included on every request by WordPress
58 characters long description:
Adds a description field for each variable pricing option.

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
Everything looks great! No dangerous files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22697132

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin