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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.46 | 62.33 ▲28.92 |
Dashboard /wp-admin | 3.49 ▲0.05 | 33.46 ▼0.42 |
Posts /wp-admin/edit.php | 3.71 ▲0.04 | 37.59 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.05 | 93.71 ▼1,171.52 |
Media Library /wp-admin/upload.php | 3.36 ▲0.04 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 15.89 ▲0.35 | 7.20 ▲1.04 | 2.60 ▲0.13 |
Dashboard /wp-admin | 2,892 ▲34 | 6.07 ▼0.12 | 121.91 ▼13.05 | 156.91 ▼2.58 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▼0.01 | 63.91 ▼0.16 | 142.33 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,760 ▼0 | 22.80 ▲0.19 | 432.88 ▲0.07 | 157.23 ▼0.85 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.51 ▼0.01 | 143.02 ▲1.56 | 184.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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 88 | 113 |
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 code | 0.29 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 2 | 14.29% |
▷ Private methods | 2 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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