84% um-navigation-menu

Code Review | UM Navigation Menu

WordPress plugin UM Navigation Menu scored84%from 54 tests.

About plugin

  • Plugin page: um-navigation-menu
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2018
  • Latest release: Dec 25, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /947 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 gracefully, with no errors

Server metrics [RAM: ▼0.14MB] [CPU: ▼15.86ms] Passed 4 tests

Analyzing server-side resources used by UM Navigation Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0232.41 ▼9.13
Dashboard /wp-admin3.24 ▼0.0733.55 ▼18.45
Posts /wp-admin/edit.php3.30 ▼0.0636.12 ▼13.38
Add New Post /wp-admin/post-new.php5.48 ▼0.4072.47 ▼22.49
Media Library /wp-admin/upload.php3.24 ▲0.0130.93 ▼3.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for UM Navigation Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /811 ▼1,93512.26 ▼2.120.71 ▼1.0115.86 ▼28.02
Dashboard /wp-admin504 ▼1,7021.38 ▼4.6815.29 ▼87.4820.11 ▼19.76
Posts /wp-admin/edit.php502 ▼1,6011.14 ▼0.906.55 ▼32.4017.75 ▼17.83
Add New Post /wp-admin/post-new.php453 ▼1,0781.73 ▼21.3621.80 ▼676.177.67 ▼49.69
Media Library /wp-admin/upload.php512 ▼8881.73 ▼2.4719.89 ▼94.3317.52 ▼28.88

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-navigation-menu/um-navigation-menu.php:375

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: ultimate member profile tabs, ultimatemember, ultimate member, ultimatemember navigation menu

um-navigation-menu/um-navigation-menu.php Passed 13 tests

Analyzing the main PHP file in "UM Navigation Menu" version 1.0.0
35 characters long description:
A radical new plugin for WordPress!

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 plugin419 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP277254235
JavaScript141145174
XML12410

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.50
▷ Minimum class complexity16.00
▷ Maximum class complexity21.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods18
▷ Static methods422.22%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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