84% dl-block-right-mouse-button

Code Review | DL Block Right Mouse Button

WordPress plugin DL Block Right Mouse Button scored84%from 54 tests.

About plugin

  • Plugin page: dl-block-right-mo...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Aug 28, 2016
  • Number of updates: 14
  • Update frequency: every 89.9 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by DL Block Right Mouse Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.62 ▲5.61
Dashboard /wp-admin3.31 ▲0.0150.77 ▼4.68
Posts /wp-admin/edit.php3.36 ▲0.0055.67 ▲4.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.21 ▼0.98
Media Library /wp-admin/upload.php3.24 ▲0.0035.13 ▲0.36

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DL Block Right Mouse Button
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.64 ▼0.2939.97 ▼1.41
Dashboard /wp-admin2,198 ▲185.57 ▲0.0486.43 ▼6.1539.33 ▼0.42
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0340.04 ▼3.7935.63 ▼1.76
Add New Post /wp-admin/post-new.php1,526 ▼023.22 ▲0.04660.96 ▲21.0451.18 ▼6.95
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.02101.94 ▼1.6946.27 ▲2.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-block-right-mouse-button/dl-block-right-mouse-button.php:12

User-side errors Passed 1 test

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

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: Add images for these screenshots: #1 (Запрет правого клика на странице сайта), #2 (Запрет сочетание клавиш ‘Ctrl + C’)
Please take inspiration from this readme.txt

dl-block-right-mouse-button/dl-block-right-mouse-button.php 92% from 13 tests

The main PHP file in "DL Block Right Mouse Button" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171349

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.63KB17.94KB▼ 41.44%
screenshot-2.png21.39KB20.05KB▼ 6.23%