Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.92ms] Passed 4 tests
An overview of server-side resources used by Easy Content Protector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.11 ▼2.26 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.38 ▼4.77 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.72 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.83 ▼10.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.56 ▲1.97 |
Content Protector /wp-admin/options-general.php?page=easy-content-protector | 3.24 | 32.82 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Content Protector
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲200 | 14.06 ▼0.34 | 5.86 ▲4.21 | 38.65 ▼11.02 |
Dashboard /wp-admin | 2,213 ▲24 | 5.89 ▲0.96 | 107.70 ▼15.92 | 42.72 ▼1.44 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.97 ▼0.08 | 39.22 ▼2.19 | 35.61 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.11 ▲4.36 | 595.18 ▼34.79 | 54.54 ▼6.04 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.11 ▼0.10 | 97.99 ▼0.22 | 40.29 ▼3.97 |
Content Protector /wp-admin/options-general.php?page=easy-content-protector | 908 | 2.06 | 25.03 | 26.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-content-protector/easy-content-protector.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Easy_Content_Protector\\Inc\\Classes\\Setting' not found in wp-content/plugins/easy-content-protector/inc/options/settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2 in easy-content-protector/assets to your readme.txt
- Tags: You are using too many tags: 12 tag instead of maximum 10
easy-content-protector/easy-content-protector.php Passed 13 tests
The primary PHP file in "Easy Content Protector" version 1.0.1 is used by WordPress to initiate all plugin functionality
34 characters long description:
Simple way to protect your content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected899 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 182 | 151 | 627 |
JavaScript | 2 | 60 | 8 | 104 |
Sass | 2 | 10 | 0 | 91 |
CSS | 6 | 7 | 17 | 77 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin