Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-disable-right-click/wp-disable-right-click.php+29
Non-static method FLV_Disable_Right_Click::init() should not be called statically
Server metrics [RAM: ▼1.94MB] [CPU: ▼57.04ms] Passed 4 tests
This is a short check of server-side resources used by WP Disable right click
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.00 ▼37.54 |
Dashboard /wp-admin | 2.08 ▼1.23 | 6.32 ▼46.28 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 7.05 ▼48.70 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.66 ▼95.63 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 6.42 ▼31.40 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Disable right click
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲112 | 13.50 ▼0.88 | 9.01 ▲7.28 | 43.40 ▲0.36 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.04 | 95.10 ▼0.33 | 43.35 ▲0.21 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.03 | 38.10 ▼4.45 | 37.17 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.06 ▼0.14 | 656.59 ▼32.42 | 47.66 ▼5.92 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▼0.02 | 112.03 ▲6.39 | 47.81 ▲3.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-disable-right-click/wp-disable-right-click.php+29
Non-static method FLV_Disable_Right_Click::init() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-disable-right-click/wp-disable-right-click.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: disable right click, copy protect, protection against copying, prevent right click, right click disable
wp-disable-right-click/wp-disable-right-click.php Passed 13 tests
The primary PHP file in "WP Disable right click" version 1.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Site Protection against copying
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
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 0 | 0 | 20 |
PHP | 1 | 12 | 21 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 1 | 50.00% |
▷ Public methods | 2 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin