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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.30ms] Passed 4 tests
An overview of server-side resources used by Easy Digital Downloads - Protect Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.84 ▼0.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.99 ▼6.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.49 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.19 ▼12.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.23 ▲4.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Digital Downloads - Protect Images: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.65 ▼0.00 | 1.61 ▲0.03 | 40.50 ▼2.45 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.97 | 106.28 ▼0.69 | 37.31 ▼9.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 37.80 ▲0.76 | 33.70 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.31 ▲0.07 | 618.67 ▼31.00 | 52.18 ▼8.85 |
Media Library /wp-admin/upload.php | 1,379 ▼6 | 4.24 ▼0.15 | 102.24 ▼1.38 | 42.15 ▼2.06 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
edd-protect-images/edd-protect-images.php Passed 13 tests
The main file in "Easy Digital Downloads - Protect Images" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Protects (compress) image files when uploaded as file attachment
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin389 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 108 | 112 | 292 |
JavaScript | 1 | 31 | 12 | 97 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 3 | 13.64% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 files were detected