84% right-click-menu

Code Review | Right Click Menu

WordPress plugin Right Click Menu scored84%from 54 tests.

About plugin

  • Plugin page: right-click-menu
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: May 30, 2016
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: sumanbiswas013 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Right Click Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.26 ▼2.23
Dashboard /wp-admin3.32 ▲0.0144.02 ▼5.99
Posts /wp-admin/edit.php3.37 ▲0.0145.97 ▼2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.72 ▼1.72
Media Library /wp-admin/upload.php3.24 ▲0.0131.67 ▼2.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Right Click Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲18313.55 ▼0.827.88 ▲6.0640.24 ▼2.05
Dashboard /wp-admin2,206 ▲185.83 ▲0.95100.99 ▼5.4241.40 ▼1.87
Posts /wp-admin/edit.php2,086 ▼01.99 ▼0.0341.50 ▲2.0639.02 ▲5.44
Add New Post /wp-admin/post-new.php1,546 ▲318.11 ▼4.95586.27 ▼101.4472.81 ▲19.91
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.06100.50 ▼12.8444.63 ▼3.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/right-click-menu/right-click-menu.php:26

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 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • License uri: Invalid url: ""
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Right Click Menu" version 2.2
79 characters long description:
User can get a menu by mouse right click. Admin can set a menu from admin panel

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 detected57 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS12022
PHP291921
JavaScript17614

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin