Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.96ms] Passed 4 tests
A check of server-side resources used by No Right Click, Content Copy Protection, Disable Right Click by RB
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.77 ▲9.26 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.89 ▼5.74 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.86 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.12 ▼5.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.65 ▲0.87 |
Disable Right Click /wp-admin/admin.php?page=rb_disable_right_click_settings | 3.23 | 33.43 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by No Right Click, Content Copy Protection, Disable Right Click by RB
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.20 ▼1.18 | 1.70 ▼0.26 | 44.12 ▼6.78 |
Dashboard /wp-admin | 2,242 ▲54 | 5.87 ▲0.04 | 100.03 ▼13.36 | 40.74 ▼6.60 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.02 ▼0.01 | 39.40 ▲2.79 | 36.46 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 23.06 ▲5.48 | 671.88 ▼19.37 | 75.95 ▲18.25 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.24 ▲0.11 | 95.93 ▼21.82 | 44.15 ▼5.71 |
Disable Right Click /wp-admin/admin.php?page=rb_disable_right_click_settings | 938 | 2.17 | 30.15 | 29.43 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Disable Right Click plugin - options screen of the Disable Right Click RB), #2 (Disable Right Click notice)
disable-right-click-rb/disable-right-click-rb.php Passed 13 tests
The main PHP script in "No Right Click, Content Copy Protection, Disable Right Click by RB" version 1.0.7 is automatically included on every request by WordPress
117 characters long description:
This wp plugin protects the content of the post from being copied by any other website author content copy protection
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
There were no executable files found in this plugin442 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 31 | 277 |
SVG | 1 | 1 | 1 | 107 |
PO File | 1 | 24 | 37 | 58 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 11 | 64.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 35.29% |
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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.98KB | 5.05KB | ▼ 43.82% |
screenshot-2.png | 4.25KB | 2.66KB | ▼ 37.37% |