89% wpwebsol-disable-right-click

Code Review | WpWebSol Disable Right Click

WordPress plugin WpWebSol Disable Right Click scored89%from 54 tests.

About plugin

  • Plugin page: wpwebsol-disable-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Jun 16, 2023
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: wpwebwol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /66 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: ▼10.52ms] Passed 4 tests

This is a short check of server-side resources used by WpWebSol Disable Right Click
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.35 ▼7.70
Dashboard /wp-admin3.31 ▼0.0444.48 ▼20.07
Posts /wp-admin/edit.php3.36 ▲0.0044.83 ▼0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.78 ▼13.71
Media Library /wp-admin/upload.php3.23 ▲0.0033.68 ▲0.73

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WpWebSol Disable Right Click
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.27 ▼0.131.68 ▼0.1338.69 ▼1.65
Dashboard /wp-admin2,195 ▲155.57 ▼0.0990.07 ▼4.3038.94 ▲2.54
Posts /wp-admin/edit.php2,079 ▼212.04 ▲0.0134.42 ▼3.2032.13 ▲0.56
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▲0.36602.94 ▼1.7759.11 ▼6.18
Media Library /wp-admin/upload.php1,400 ▲64.19 ▲0.0496.59 ▼14.4141.75 ▼1.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

wpwebsol-disable-right-click/wpws-disable-right-click.php 85% from 13 tests

"WpWebSol Disable Right Click" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpwebsol-disable-right-click.php" instead of "wpws-disable-right-click.php")

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
Everything looks great! No dangerous files found in this plugin22 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11013
PHP25139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tags/screenshot.png67.12KB30.42KB▼ 54.67%
screenshot.png67.12KB30.42KB▼ 54.67%