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.04MB] [CPU: ▼11.28ms] Passed 4 tests
Server-side resources used by EDD Purchase Rewards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.46 ▼2.41 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.05 ▼2.04 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.85 ▼15.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.22 ▼25.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 40.24 ▲2.22 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by EDD Purchase Rewards
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.25 ▼0.10 | 1.76 ▼0.26 | 47.32 ▲0.53 |
Dashboard /wp-admin | 2,198 ▲18 | 5.51 ▼0.11 | 82.37 ▼4.57 | 38.75 ▼5.81 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.01 | 35.16 ▼5.80 | 36.20 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.20 ▼0.09 | 659.36 ▼42.49 | 64.26 ▼1.57 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▼0.03 | 98.79 ▼6.09 | 45.45 ▲0.77 |
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
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-purchase-rewards/includes/template-functions.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-purchase-rewards/includes/scripts.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in edd-purchase-rewards/assets to your readme.txt
edd-purchase-rewards/edd-purchase-rewards.php Passed 13 tests
Analyzing the main PHP file in "EDD Purchase Rewards" version 1.1
64 characters long description:
Increase sales and build customer loyalty by rewarding customers
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,195 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 301 | 443 | 933 |
PO File | 1 | 62 | 62 | 262 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 34 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin