84% disable-right-click-and-content-copy-protection

Code Review | Disable Right Click and Content Copy Protection

WordPress plugin Disable Right Click and Content Copy Protection scored84%from 54 tests.

About plugin

  • Plugin page: disable-right-cli...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.7.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: May 10, 2021
  • Number of updates: 14
  • Update frequency: every 57.8 days
  • Top authors: immeet94 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /8,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.41ms] Passed 4 tests

Analyzing server-side resources used by Disable Right Click and Content Copy Protection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.04 ▼1.25
Dashboard /wp-admin3.31 ▲0.0058.03 ▲6.90
Posts /wp-admin/edit.php3.36 ▲0.0049.52 ▼0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.13 ▼11.73
Media Library /wp-admin/upload.php3.23 ▲0.0033.54 ▼0.60

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Disable Right Click and Content Copy Protection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▲0.061.70 ▲0.0946.70 ▼0.04
Dashboard /wp-admin2,198 ▲215.63 ▼0.0191.14 ▲1.1842.63 ▲1.14
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0341.43 ▲5.4335.00 ▼0.50
Add New Post /wp-admin/post-new.php1,528 ▼023.19 ▲0.20676.23 ▲16.8466.91 ▲17.94
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0397.37 ▼13.9249.40 ▲7.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-right-click-and-content-copy-protection/disable-right-click-and-content-copy-protection.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: stop image saving with right click, no copy paste, prevent right click, disable right click, copyright protection

disable-right-click-and-content-copy-protection/disable-right-click-and-content-copy-protection.php 92% from 13 tests

The principal PHP file in "Disable Right Click and Content Copy Protection" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin80 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript132368
PHP111012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin