100% wield-menu

Code Review | Wield Menu

WordPress plugin Wield Menu scored 100% from 54 tests.

About plugin

  • Plugin page: wield-menu
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Dec 9, 2016
  • Latest release: Jul 12, 2021
  • Number of updates: 20
  • Update frequency: every 83.6 days
  • Top authors: alpipego (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 1,356 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Wield Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.74 ▲3.23
Dashboard /wp-admin3.07 ▲0.0151.51 ▼15.38
Posts /wp-admin/edit.php3.12 ▲0.0144.36 ▼0.02
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.53 ▼570.00
Media Library /wp-admin/upload.php3.01 ▲0.0138.42 ▲1.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Wield Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲11015.74 ▼0.166.82 ▼1.9253.47 ▼4.36
Dashboard /wp-admin2,965 ▲315.88 ▼0.19145.89 ▼13.26117.58 ▼10.85
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0268.91 ▼1.5491.14 ▼3.22
Add New Post /wp-admin/post-new.php1,686 ▲318.77 ▲0.09400.96 ▲7.23117.54 ▲2.57
Media Library /wp-admin/upload.php1,810 ▼125.01 ▲0.00158.50 ▲5.74131.00 ▼0.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: menus, navigation menu

wield-menu/wield-menu.php Passed 13 tests

The primary PHP file in "Wield Menu" version 1.2.1 is used by WordPress to initiate all plugin functionality
44 characters long description:
Makes long and complex menus easier editable

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
Success! There were no dangerous files found in this plugin194 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript210112
YAML20036
CSS27032
PHP12914

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code1.50
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 files were detected