84% right-click-disable-orignal

Code Review | Right Click Disable Orignal

WordPress plugin Right Click Disable Orignal scored84%from 54 tests.

About plugin

  • Plugin page: right-click-disab...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Mar 24, 2016
  • Number of updates: 11
  • Update frequency: every 49.7 days
  • Top authors: yash fale (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /33,871 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Right Click Disable Orignal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.94 ▼5.81
Dashboard /wp-admin3.31 ▲0.0145.08 ▼3.69
Posts /wp-admin/edit.php3.36 ▲0.0046.19 ▼1.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.29 ▲8.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.98 ▲2.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Right Click Disable Orignal
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.57 ▼1.125.74 ▲4.0343.14 ▼3.79
Dashboard /wp-admin2,209 ▲215.84 ▲0.97102.82 ▼0.9540.29 ▼2.72
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0237.48 ▲2.9634.58 ▼3.73
Add New Post /wp-admin/post-new.php1,533 ▼023.29 ▲0.08681.18 ▼1.4063.47 ▲4.97
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0199.34 ▼8.1942.89 ▼4.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/right-click-disable-orignal/rightclickdisable.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (For screenshots please visit the [Right Click Disable Orignal](https://wordpress.org/plugins/right-click-disable-orignal/) plugin page) image not found
Please take inspiration from this readme.txt

right-click-disable-orignal/rightclickdisable.php 92% from 13 tests

The principal PHP file in "Right Click Disable Orignal" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("right-click-disable-orignal.php" instead of "rightclickdisable.php")

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
Good job! No executable or dangerous file extensions detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1189
JavaScript11907

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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
No PNG images were found in this plugin