84% user-links-for-wp-menus

Code Review | User Links for WP Menus

WordPress plugin User Links for WP Menus scored84%from 54 tests.

About plugin

  • Plugin page: user-links-for-wp...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: May 7, 2013
  • Latest release: May 10, 2013
  • Number of updates: 12
  • Update frequency: every 29.0 days
  • Top authors: jb510 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,439 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
Installer ran successfully

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

An overview of server-side resources used by User Links for WP Menus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.17 ▼0.14
Dashboard /wp-admin3.32 ▲0.0148.71 ▼5.16
Posts /wp-admin/edit.php3.37 ▲0.0147.57 ▼4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.25 ▼25.13
Media Library /wp-admin/upload.php3.24 ▲0.0137.47 ▼0.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by User Links for WP Menus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.72 ▼0.651.88 ▲0.1541.80 ▲1.86
Dashboard /wp-admin2,206 ▲204.83 ▼0.08100.22 ▼10.2541.84 ▼3.12
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0241.60 ▲0.3335.97 ▲1.10
Add New Post /wp-admin/post-new.php1,533 ▼023.22 ▲0.30667.36 ▲10.1451.57 ▼7.95
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.00105.05 ▼3.5749.93 ▲4.90

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-links-for-wp-menus/user-links-for-wp-menus.php:58

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === user-links-for-wp-menus === )
Please take inspiration from this readme.txt

user-links-for-wp-menus/user-links-for-wp-menus.php Passed 13 tests

The main file in "User Links for WP Menus" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
130 characters long description:
Adds a metabox to the menu admin page listing users so they can be more easily added as custom links to the WordPress Custom Menus

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111657

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin