89% admin-right-click-menu

Code Review | Admin Right Click Menu

WordPress plugin Admin Right Click Menu scored 89% from 54 tests.

About plugin

  • Plugin page: admin-right-click...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.9.2
  • First release: Aug 21, 2016
  • Latest release: Aug 22, 2016
  • Number of updates: 21
  • Update frequency: every 0.5 days
  • Top authors: mouret (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 886 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Admin Right Click Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.82 ▲3.56
Dashboard /wp-admin3.43 ▲0.0232.37 ▼0.53
Posts /wp-admin/edit.php3.65 ▲0.0136.97 ▼0.30
Add New Post /wp-admin/post-new.php6.89 ▼0.0889.94 ▼1,184.83
Media Library /wp-admin/upload.php3.30 ▲0.0123.83 ▼0.49
Admin Right Click Menu /wp-admin/options-general.php?page=arcm_options3.2522.60

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Right Click Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,882 ▲12816.27 ▲0.6010.93 ▲4.832.21 ▼0.35
Dashboard /wp-admin2,890 ▲296.01 ▼0.16118.31 ▼16.64150.62 ▼11.55
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0062.58 ▼1.41140.49 ▼0.85
Add New Post /wp-admin/post-new.php1,671 ▼4617.76 ▼4.04405.36 ▼20.92173.69 ▲20.77
Media Library /wp-admin/upload.php1,703 ▲25.51 ▲0.04149.45 ▲8.68186.59 ▲4.61
Admin Right Click Menu /wp-admin/options-general.php?page=arcm_options1,4172.4154.31122.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=arcm_options
    • > Notice in wp-content/plugins/admin-right-click-menu/admin-right-click-menu.php+253
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-right-click-menu/admin-right-click-menu.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: context, rightclick, context-menu, admin, remove...

admin-right-click-menu/admin-right-click-menu.php Passed 13 tests

The main file in "Admin Right Click Menu" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
The default WP Admin Toolbar (frontend) is moved to a right click menu (context menu)

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
Success! There were no dangerous files found in this plugin334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin