89% ultimate-member-navigation-menu

Code Review | Ultimate Member - Navigation Menu

WordPress plugin Ultimate Member - Navigation Menu scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-member-n...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: Mar 1, 2016
  • Number of updates: 7
  • Update frequency: every 10.3 days
  • Top authors: kishores (71.43%)wpdelighter (42.86%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /11,625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Ultimate Member - Navigation Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.20 ▲1.05
Dashboard /wp-admin3.31 ▼0.0450.98 ▼18.07
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼5.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.59 ▼28.36
Media Library /wp-admin/upload.php3.23 ▲0.0041.93 ▲3.49

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Member - Navigation Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.68 ▼0.571.92 ▲0.1943.91 ▲3.01
Dashboard /wp-admin2,221 ▲174.88 ▼0.0598.56 ▼11.0439.10 ▼4.49
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0036.79 ▼6.3333.19 ▼2.36
Add New Post /wp-admin/post-new.php1,545 ▼122.93 ▼0.29679.91 ▼17.6054.83 ▼5.85
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.04113.53 ▼8.5048.55 ▼1.63

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ultimate-member-navigation-menu === )
Please take inspiration from this readme.txt

ultimate-member-navigation-menu/ultimate-member-navigation-menu.php 92% from 13 tests

The primary PHP file in "Ultimate Member - Navigation Menu" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected467 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8172396467

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin