84% crows-nest-menu-navigation

Code Review | Crow's Nest Menu Navigation

WordPress plugin Crow's Nest Menu Navigation scored84%from 54 tests.

About plugin

  • Plugin page: crows-nest-menu-n...
  • Plugin version: 1.9.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 3, 2022
  • Latest release: Oct 4, 2023
  • Number of updates: 41
  • Update frequency: every 12.7 days
  • Top authors: seamonsterdeneb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,103 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.02MB] [CPU: ▼9.43ms] Passed 4 tests

Analyzing server-side resources used by Crow's Nest Menu Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0426.25 ▼15.94
Dashboard /wp-admin3.36 ▲0.0144.16 ▼17.49
Posts /wp-admin/edit.php3.41 ▲0.0547.38 ▼2.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.14 ▼1.73
Media Library /wp-admin/upload.php3.28 ▲0.0534.44 ▼1.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Crow's Nest Menu Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲13113.66 ▼0.737.85 ▲5.9738.18 ▼5.32
Dashboard /wp-admin2,216 ▲315.79 ▼0.08103.71 ▲3.5336.98 ▼2.76
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0340.82 ▼1.1134.29 ▼2.53
Add New Post /wp-admin/post-new.php1,550 ▲3618.40 ▲0.91619.67 ▼63.2449.51 ▼11.43
Media Library /wp-admin/upload.php1,398 ▲134.26 ▲0.0296.00 ▼5.5442.19 ▼3.18

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/crows-nest-menu-navigation/crows-nest.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: arrow-keys, long menu, accessibility, keyboard navigation, dropdown menu...

crows-nest-menu-navigation/crows-nest.php 92% from 13 tests

The principal PHP file in "Crow's Nest Menu Navigation" v. 1.9.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crows-nest-menu-navigation.php" instead of "crows-nest.php")

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
Success! There were no dangerous files found in this plugin589 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14910368
JavaScript11122202
CSS11619

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions13
▷ Named functions13100.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