84% right-click-menu-hayati-kodla

Code Review | Right Click Menu (Like hayatikodla.net)

WordPress plugin Right Click Menu (Like hayatikodla.net) scored84%from 54 tests.

About plugin

  • Plugin page: right-click-menu-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Apr 1, 2023
  • Number of updates: 9
  • Update frequency: every 38.3 days
  • Top authors: hasanyuksektepe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 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.05MB] [CPU: ▼11.13ms] Passed 4 tests

Analyzing server-side resources used by Right Click Menu (Like hayatikodla.net)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.74 ▼3.72
Dashboard /wp-admin3.36 ▲0.0147.46 ▼16.72
Posts /wp-admin/edit.php3.47 ▲0.1148.03 ▲2.37
Add New Post /wp-admin/post-new.php5.96 ▲0.0778.65 ▼22.68
Media Library /wp-admin/upload.php3.28 ▲0.0532.27 ▼1.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Right Click Menu (Like hayatikodla.net)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.60 ▼0.699.13 ▲7.4638.85 ▼5.47
Dashboard /wp-admin2,210 ▲225.85 ▲0.00101.42 ▼1.2740.92 ▼0.50
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0039.81 ▼2.2434.49 ▼1.17
Add New Post /wp-admin/post-new.php1,518 ▼2623.27 ▲5.16679.16 ▲53.9860.81 ▲8.19
Media Library /wp-admin/upload.php1,395 ▲74.30 ▲0.0495.15 ▼3.5641.31 ▼4.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/right-click-menu-hayati-kodla/admin/partials/right-click-menu-hayatikodla-admin-display.php
    • > /wp-content/plugins/right-click-menu-hayati-kodla/public/partials/right-click-menu-hayatikodla-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: right click, right click menu, right click disable

right-click-menu-hayati-kodla/right-click-menu-hayatikodla.php 85% from 13 tests

"Right Click Menu (Like hayatikodla.net)" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("right-click-menu-hayati-kodla.php" instead of "right-click-menu-hayatikodla.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
Success! There were no dangerous files found in this plugin303 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12120541183
CSS212576
JavaScript2203244

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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