Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.57ms] Passed 4 tests
Analyzing server-side resources used by EDD Disable Purchase Receipt
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.58 ▲0.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.99 ▼4.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.22 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.46 ▼5.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.18 ▼0.24 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for EDD Disable Purchase Receipt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.17 ▼1.20 | 1.94 ▲0.39 | 40.88 ▼2.79 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▼0.02 | 104.85 ▼4.61 | 39.72 ▼1.92 |
Posts /wp-admin/edit.php | 2,092 ▲24 | 2.02 ▼0.00 | 52.64 ▲17.90 | 51.75 ▲18.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.15 ▼0.17 | 612.92 ▼39.78 | 53.61 ▼2.54 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.04 | 96.16 ▼1.29 | 41.50 ▲0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
edd-disable-purchase-receipt/edd-disable-purchase-receipt.php Passed 13 tests
The entry point to "EDD Disable Purchase Receipt" version 1.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Disables the standard purchase receipt sent to the customer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 38 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ 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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
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
There are no PNG files in this plugin