83% bmt-no-right-click

Code Review | Mechanic - No Right Click

WordPress plugin Mechanic - No Right Click scored83%from 54 tests.

About plugin

  • Plugin page: bmt-no-right-click
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 8, 2016
  • Latest release: Sep 1, 2020
  • Number of updates: 6
  • Update frequency: every 248.2 days
  • Top authors: balimechanicthemes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /4,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Mechanic - No Right Click
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0074.64 ▲3.23
Dashboard /wp-admin3.31 ▼0.0482.89 ▼21.63
Posts /wp-admin/edit.php3.36 ▲0.0082.09 ▼3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.00143.23 ▼7.32
Media Library /wp-admin/upload.php3.23 ▲0.0059.69 ▼3.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mechanic - No Right Click
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6214.44 ▲0.293.91 ▼0.4674.36 ▼2.68
Dashboard /wp-admin2,206 ▲215.89 ▲1.03191.71 ▲10.0790.66 ▼0.17
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1464.83 ▼10.2266.17 ▼11.72
Add New Post /wp-admin/post-new.php1,365 ▼2717.76 ▼0.44942.45 ▼27.7076.94 ▼0.04
Media Library /wp-admin/upload.php1,385 ▲34.27 ▲0.07188.18 ▲6.6093.53 ▲1.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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/bmt-no-right-click/bmt-norightclick.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

bmt-no-right-click/bmt-norightclick.php 85% from 13 tests

The main PHP file in "Mechanic - No Right Click" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bmt-no-right-click.php" instead of "bmt-norightclick.php")
  • Description: The description should be shorter than 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected177 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11436106
PO File2101071

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
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
There were not PNG files found in your plugin