84% 8-disable-right-click

Code Review | 8 Disable Right Click

WordPress plugin 8 Disable Right Click scored84%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: 6.3.1
  • 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

20+ active /503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.41ms] Passed 4 tests

Analyzing server-side resources used by 8 Disable Right Click
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.76 ▼8.83
Dashboard /wp-admin3.31 ▲0.0139.86 ▼10.28
Posts /wp-admin/edit.php3.37 ▲0.0146.03 ▼3.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.32 ▲0.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.54 ▼3.11

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

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

Browser metrics Passed 4 tests

8 Disable Right Click: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.54 ▼0.681.61 ▼0.3138.06 ▼11.88
Dashboard /wp-admin2,206 ▲184.87 ▼1.02115.51 ▼3.9145.35 ▼0.78
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.44 ▲3.3734.63 ▼3.48
Add New Post /wp-admin/post-new.php6,312 ▲4,78719.38 ▼4.03890.97 ▲216.7658.97 ▲11.71
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0396.42 ▼24.3341.19 ▼5.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output text when accessed directly:
    • > /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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No tags were found

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

Analyzing the main PHP file in "8 Disable Right Click" version 1.0.1
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17750
JavaScript1006

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.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
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin