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.06MB] [CPU: ▼2.22ms] Passed 4 tests
Analyzing server-side resources used by Easy Disable Source, No Right-click, Image and Content Protection
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.87 ▼5.14 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.39 ▲1.67 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 51.03 ▲4.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.55 ▼7.18 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.92 ▲1.78 |
Disable Right-Click /wp-admin/options-general.php?page=disable-right-click | 3.26 | 32.69 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Disable Source, No Right-click, Image and Content Protection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲46 | 14.71 ▲0.36 | 1.64 ▼0.04 | 36.76 ▼5.28 |
Dashboard /wp-admin | 2,216 ▲35 | 5.71 ▼0.02 | 89.51 ▼22.75 | 38.24 ▼7.17 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.01 ▲0.07 | 37.95 ▼2.07 | 32.78 ▼4.66 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,716 | 18.70 ▼4.40 | 842.55 ▲223.93 | 65.19 ▲12.19 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.15 ▼0.14 | 94.20 ▼3.30 | 42.07 ▲0.88 |
Disable Right-Click /wp-admin/options-general.php?page=disable-right-click | 920 | 2.13 | 27.75 | 32.95 |
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
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-disable-right-click/disable-right-click.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires php: Version format is invalid
- Screenshots: These screenshots have no corresponding images in /assets: #1 (settings), #2 (setting for post/page)
easy-disable-right-click/disable-right-click.php 85% from 13 tests
The primary PHP file in "Easy Disable Source, No Right-click, Image and Content Protection" version 2.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-disable-right-click.php" instead of "disable-right-click.php")
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
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 detected502 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 107 | 50 | 341 |
JavaScript | 4 | 29 | 40 | 104 |
CSS | 2 | 9 | 6 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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 are no PNG files in this plugin