79% admin-right-click-menu

Code Review | Admin Right Click Menu

WordPress plugin Admin Right Click Menu scored79%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: 6.3.1
  • 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 /1,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.32ms] Passed 4 tests

Server-side resources used by Admin Right Click Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.66 ▼3.31
Dashboard /wp-admin3.35 ▲0.0550.06 ▼5.36
Posts /wp-admin/edit.php3.40 ▲0.0550.37 ▼0.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.60 ▼11.77
Media Library /wp-admin/upload.php3.27 ▲0.0538.89 ▲1.66
Admin Right Click Menu /wp-admin/options-general.php?page=arcm_options3.2232.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Admin Right Click Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.64 ▼0.736.30 ▲4.4641.39 ▼4.58
Dashboard /wp-admin2,225 ▲224.78 ▼1.12109.67 ▼5.4738.49 ▼12.92
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0441.65 ▲5.2535.25 ▼1.90
Add New Post /wp-admin/post-new.php1,550 ▲823.16 ▲4.83615.40 ▼50.5154.06 ▲2.25
Media Library /wp-admin/upload.php1,401 ▼24.27 ▲0.0399.32 ▼9.8246.25 ▼1.50
Admin Right Click Menu /wp-admin/options-general.php?page=arcm_options1,1312.0422.5130.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 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
The following issues need your attention
  • 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/admin-right-click-menu/admin-right-click-menu.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: toolbar, context, adminbar, context-menu, contextmenu...

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

"Admin Right Click Menu" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21334223
CSS10091
JavaScript12120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin