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: ▼8.78ms] Passed 4 tests
A check of server-side resources used by Smart Disable Right Click On Website
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.19 ▼5.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.53 ▼5.53 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 49.05 ▲4.48 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 78.26 ▼24.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.68 ▲0.07 |
Smart Disable Right Click /wp-admin/options-general.php?page=sdrc | 3.23 | 30.01 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Smart Disable Right Click On Website: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.78 ▼0.77 | 8.37 ▲6.68 | 43.25 ▲0.30 |
Dashboard /wp-admin | 2,206 ▲32 | 5.62 ▲0.04 | 82.17 ▼6.92 | 37.28 ▼9.30 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.01 ▼0.02 | 39.18 ▲3.32 | 35.63 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.27 ▲0.31 | 611.48 ▼30.87 | 60.30 ▲8.10 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▲0.03 | 96.53 ▲1.40 | 42.76 ▲0.82 |
Smart Disable Right Click /wp-admin/options-general.php?page=sdrc | 761 | 1.99 | 25.00 | 22.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=sdrc
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'sdrc_options_page_html' not found or invalid function name
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smart-disable-right-click-on-website/public/partials/smart-disable-right-click-on-website-public-display.php
- > /wp-content/plugins/smart-disable-right-click-on-website/admin/partials/smart-disable-right-click-on-website-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: disable right click, disable right clcik menu, disable inspect element
smart-disable-right-click-on-website/smart-disable-right-click-on-website.php Passed 13 tests
The main file in "Smart Disable Right Click On Website" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
How do I make my website right-click disabled?
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected215 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 121 | 540 | 205 |
JavaScript | 3 | 6 | 81 | 10 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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 files were detected