Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.22ms] Passed 4 tests
Server-side resources used by Content Copy Protection & Disable Right Click
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.99 ▼3.31 |
Dashboard /wp-admin | 3.35 ▲0.01 | 47.88 ▼17.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.73 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.63 ▼2.92 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.49 ▲0.12 |
Disable Right Click /wp-admin/options-general.php?page=ccpdrc_options | 3.27 | 34.10 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
ccpdrc_settings |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Content Copy Protection & Disable Right Click: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.22 ▼1.15 | 1.83 ▲0.08 | 40.25 ▼2.69 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.02 | 111.22 ▼5.54 | 44.25 ▲1.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 39.98 ▲0.60 | 35.00 ▼4.18 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 22.91 ▼0.11 | 594.00 ▼92.94 | 59.83 ▲1.73 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.00 | 96.22 ▼21.80 | 45.48 ▼2.26 |
Disable Right Click /wp-admin/options-general.php?page=ccpdrc_options | 1,095 | 2.03 | 24.48 | 45.84 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/content-copy-protection-disable-right-click/admin/pages/tabs/basic.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-copy-protection-disable-right-click/admin/pages/tabs/help.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/content-copy-protection-disable-right-click/admin/pages/tabs/advanced.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/content-copy-protection-disable-right-click/admin/pages/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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: Add images for these screenshots: #1 (Settings screen), #2 (Help screen)
content-copy-protection-disable-right-click/CCPDRC.php 85% from 13 tests
The primary PHP file in "Content Copy Protection & Disable Right Click" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("content-copy-protection-disable-right-click.php" instead of "CCPDRC.php")
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
There were no executable files found in this plugin713 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 67 | 128 | 364 |
CSS | 2 | 1 | 2 | 191 |
JavaScript | 2 | 18 | 25 | 158 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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 files were detected