Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.02ms] Passed 4 tests
Analyzing server-side resources used by Reviews for Easy Digital Downloads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.43 ▲0.99 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.48 ▼3.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.45 ▼8.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.52 ▼17.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.10 ▲5.97 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Reviews for Easy Digital Downloads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.62 ▼0.76 | 1.74 ▼0.15 | 43.54 ▼1.64 |
Dashboard /wp-admin | 2,216 ▲31 | 5.88 ▲0.95 | 109.81 ▲0.12 | 43.38 ▼3.07 |
Posts /wp-admin/edit.php | 2,095 ▲27 | 2.05 ▼0.00 | 35.35 ▲1.21 | 33.33 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 23.54 ▲0.37 | 672.27 ▼10.10 | 56.19 ▲6.22 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.02 | 96.43 ▼2.22 | 39.89 ▼2.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- 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
Good news, no errors were detected
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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: edd, reviews
reviews-for-easy-digital-downloads/easy-digital-downloads-reviews.php 77% from 13 tests
The main PHP file in "Reviews for Easy Digital Downloads" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reviews-for-easy-digital-downloads.php" instead of "easy-digital-downloads-reviews.php")
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected1,120 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 221 | 738 | 882 |
JavaScript | 2 | 22 | 98 | 150 |
CSS | 2 | 8 | 2 | 88 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 57 | |
▷ Static methods | 32 | 56.14% |
▷ Public methods | 43 | 75.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 24.56% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin