100% edd-variable-pricing-hawk

Code Review | EDD Variable Pricing Hawk

WordPress plugin EDD Variable Pricing Hawk scored 100% from 54 tests.

About plugin

  • Plugin page: edd-variable-pric...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 5.9.2
  • First release: Jun 13, 2014
  • Latest release: Jul 14, 2021
  • Number of updates: 16
  • Update frequency: every 161.8 days
  • Top authors: danlester (87.5%)chrisakelley (12.5%)levertechadmin (12.5%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,488 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼291.65ms] Passed 4 tests

Server-side resources used by EDD Variable Pricing Hawk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.4662.33 ▲28.92
Dashboard /wp-admin3.49 ▲0.0533.46 ▼0.42
Posts /wp-admin/edit.php3.71 ▲0.0437.59 ▲2.78
Add New Post /wp-admin/post-new.php6.95 ▼0.0593.71 ▼1,171.52
Media Library /wp-admin/upload.php3.36 ▲0.0425.90 ▲2.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by EDD Variable Pricing Hawk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.89 ▲0.357.20 ▲1.042.60 ▲0.13
Dashboard /wp-admin2,892 ▲346.07 ▼0.12121.91 ▼13.05156.91 ▼2.58
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0163.91 ▼0.16142.33 ▲0.61
Add New Post /wp-admin/post-new.php1,760 ▼022.80 ▲0.19432.88 ▲0.07157.23 ▼0.85
Media Library /wp-admin/upload.php1,701 ▲35.51 ▼0.01143.02 ▲1.56184.93 ▼3.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === edd-variable-pricing-hawk === )
Please take inspiration from this readme.txt

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

The principal PHP file in "EDD Variable Pricing Hawk" v. 1.1 is loaded by WordPress automatically on each request
76 characters long description:
Adds an alert confirming variable pricing options have been chosen correctly

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14288113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods214.29%
▷ Private methods214.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin