84% users-site-menu-link

Code Review | Users Site Menu Links

WordPress plugin Users Site Menu Links scored84%from 54 tests.

About plugin

  • Plugin page: users-site-menu-link
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Feb 11, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,196 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Users Site Menu Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.11 ▼2.91
Dashboard /wp-admin3.31 ▼0.0448.54 ▼15.45
Posts /wp-admin/edit.php3.36 ▲0.0042.41 ▼3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.26 ▼18.98
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲3.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Users Site Menu Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.29 ▼1.292.07 ▲0.3543.74 ▲3.01
Dashboard /wp-admin2,209 ▲234.86 ▼1.05104.23 ▼9.7844.69 ▲4.86
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0332.41 ▼5.7836.24 ▲0.76
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.13662.39 ▼22.2750.42 ▼1.11
Media Library /wp-admin/upload.php1,391 ▲94.17 ▼0.0395.14 ▼6.7645.95 ▲0.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
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
  • 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/users-site-menu-link/users-site-menu-link.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: users, toolbar, site menu

users-site-menu-link/users-site-menu-link.php Passed 13 tests

The main PHP file in "Users Site Menu Links" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Adds a link to the Users management page to the site's toolbar admin menu

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
Everything looks great! No dangerous files found in this plugin16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14714
Markdown1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin