90% disable-right-click-rb

Code Review | No Right Click, Content Copy Protection, Disable Right Click by RB

WordPress plugin No Right Click, Content Copy Protection, Disable Right Click by RB scored90%from 54 tests.

About plugin

  • Plugin page: disable-right-cli...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 3, 2022
  • Latest release: May 18, 2023
  • Number of updates: 10
  • Update frequency: every 50.3 days
  • Top authors: rbplugins (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /2,491 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.77 ▲9.26
Dashboard /wp-admin3.34 ▲0.0345.89 ▼5.74
Posts /wp-admin/edit.php3.45 ▲0.0951.86 ▲6.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.12 ▼5.46
Media Library /wp-admin/upload.php3.26 ▲0.0336.65 ▲0.87
Disable Right Click /wp-admin/admin.php?page=rb_disable_right_click_settings3.2333.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.20 ▼1.181.70 ▼0.2644.12 ▼6.78
Dashboard /wp-admin2,242 ▲545.87 ▲0.04100.03 ▼13.3640.74 ▼6.60
Posts /wp-admin/edit.php2,121 ▲322.02 ▼0.0139.40 ▲2.7936.46 ▲2.47
Add New Post /wp-admin/post-new.php1,564 ▲5023.06 ▲5.48671.88 ▼19.3775.95 ▲18.25
Media Library /wp-admin/upload.php1,421 ▲334.24 ▲0.1195.93 ▼21.8244.15 ▼5.71
Disable Right Click /wp-admin/admin.php?page=rb_disable_right_click_settings9382.1730.1529.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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP45731277
SVG111107
PO File1243758

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 code0.35
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1164.71%
▷ Protected methods00.00%
▷ Private methods635.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png8.98KB5.05KB▼ 43.82%
screenshot-2.png4.25KB2.66KB▼ 37.37%