Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.65ms] Passed 4 tests
This is a short check of server-side resources used by Restrict Content Pro - Easy Digital Downloads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.88 ▼7.27 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.67 ▼1.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.68 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.64 ▼11.22 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.83 ▲2.92 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
rcp_edd_installed |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Restrict Content Pro - Easy Digital Downloads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.23 ▼1.24 | 1.68 ▼0.20 | 37.97 ▼3.54 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.01 | 102.84 ▼7.22 | 40.77 ▼3.80 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▼0.00 | 35.24 ▼4.30 | 30.92 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.81 ▼5.10 | 670.81 ▲84.75 | 51.22 ▲4.66 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.15 ▼0.04 | 116.53 ▲16.51 | 51.76 ▲7.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- rcp_edd_installed
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
restrict-content-pro-edd-add-on/index.php 85% from 13 tests
The entry point to "Restrict Content Pro - Easy Digital Downloads" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("restrict-content-pro-edd-add-on.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected789 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 265 | 13 | 706 |
PO File | 1 | 30 | 75 | 83 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.85 |
Average class complexity | 81.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 7.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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 were not PNG files found in your plugin