83% wp-navigation-menu-links

Code Review | Navigation Menu Links

WordPress plugin Navigation Menu Links scored83%from 54 tests.

About plugin

  • Plugin page: wp-navigation-men...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2016
  • Latest release: Jun 27, 2023
  • Number of updates: 39
  • Update frequency: every 68.6 days
  • Top authors: Collizo4sky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /12,533 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.07MB] [CPU: ▼1.18ms] Passed 4 tests

This is a short check of server-side resources used by Navigation Menu Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.38 ▲0.02
Dashboard /wp-admin3.38 ▲0.0462.60 ▼1.76
Posts /wp-admin/edit.php3.50 ▲0.1452.39 ▲2.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.75 ▼4.98
Media Library /wp-admin/upload.php3.31 ▲0.0845.17 ▲8.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Navigation Menu Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.53 ▼0.051.78 ▲0.1045.39 ▲0.22
Dashboard /wp-admin2,239 ▲625.61 ▼0.0484.19 ▼1.5944.00 ▼0.12
Posts /wp-admin/edit.php2,145 ▲452.09 ▲0.1340.58 ▲3.3835.18 ▲1.15
Add New Post /wp-admin/post-new.php1,567 ▲4122.63 ▼0.40667.79 ▼37.6854.21 ▼4.44
Media Library /wp-admin/upload.php1,447 ▲474.05 ▼0.19101.81 ▼20.9450.67 ▼1.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 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/wp-navigation-menu-links/mo-admin-notice.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-navigation-menu-links/pp-navigation-menu-links.php 85% from 13 tests

"Navigation Menu Links" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-navigation-menu-links.php" instead of "pp-navigation-menu-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin393 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP49147393

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.75
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods21100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin