94% 8-disable-right-click

Code Review | 8 Disable Right Click

WordPress plugin 8 Disable Right Click scored 94% from 54 tests.

About plugin

  • Plugin page: 8-disable-right-c...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 5.9.2
  • First release: Dec 15, 2020
  • Latest release: Dec 15, 2020
  • Number of updates: 3
  • Update frequency: every 69.4 days
  • Top authors: 8webdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 238 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼309.87ms] Passed 4 tests

An overview of server-side resources used by 8 Disable Right Click
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.52 ▲2.84
Dashboard /wp-admin3.42 ▲0.0133.86 ▲0.63
Posts /wp-admin/edit.php3.66 ▲0.0137.19 ▲1.34
Add New Post /wp-admin/post-new.php6.90 ▼0.0891.77 ▼1,242.11
Media Library /wp-admin/upload.php3.31 ▲0.0124.40 ▲0.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

8 Disable Right Click: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3915.69 ▲0.036.44 ▲0.072.51 ▲0.49
Dashboard /wp-admin2,881 ▲205.97 ▼0.18118.29 ▼25.85156.04 ▼14.08
Posts /wp-admin/edit.php2,691 ▼03.22 ▼0.0264.96 ▲1.05146.19 ▲4.50
Add New Post /wp-admin/post-new.php1,950 ▲28221.13 ▲3.09441.75 ▲36.19173.89 ▲22.26
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.01134.83 ▼6.12186.90 ▼0.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/8-disable-right-click/8-disable-right-click.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

8-disable-right-click/8-disable-right-click.php Passed 13 tests

The principal PHP file in "8 Disable Right Click" v. 1.0.1 is loaded by WordPress automatically on each request
54 characters long description:
Disable right click in selected pages of your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin