84% getwid-megamenu

Code Review | WordPress Mega Menu Block

WordPress plugin WordPress Mega Menu Block scored84%from 54 tests.

About plugin

  • Plugin page: getwid-megamenu
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Nov 16, 2023
  • Number of updates: 29
  • Update frequency: every 41.6 days
  • Top authors: endzevich (51.72%)jetmonsters (27.59%)MotoPress (27.59%)

Code review

54 tests

User reviews

9 reviews

Install metrics

600+ active /12,798 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: ▼4.29ms] Passed 4 tests

A check of server-side resources used by WordPress Mega Menu Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.33 ▲1.05
Dashboard /wp-admin3.32 ▼0.0243.20 ▼15.41
Posts /wp-admin/edit.php3.44 ▲0.0844.43 ▲1.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.42 ▼3.93
Media Library /wp-admin/upload.php3.25 ▲0.0231.88 ▲1.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Mega Menu Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11113.34 ▼0.949.58 ▲7.6948.30 ▲4.29
Dashboard /wp-admin2,192 ▲185.61 ▲0.0192.59 ▼12.2642.16 ▼1.63
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0339.90 ▲3.8535.74 ▲2.34
Add New Post /wp-admin/post-new.php6,194 ▲4,66818.99 ▼4.59904.43 ▲255.1858.12 ▼10.63
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0898.66 ▼0.4942.18 ▼3.26

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/MegaMenuItem.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/MegaMenu.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/PlainMenu.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/PlainMenuItem.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in getwid-megamenu/assets to your readme.txt
You can look at the official readme.txt

getwid-megamenu/getwid-megamenu.php Passed 13 tests

The main PHP file in "WordPress Mega Menu Block" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Build better navigation menus with the WordPress mega menu blocks.

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
There were no executable files found in this plugin514 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP913425435
CSS219077
JavaScript2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods1435.00%
▷ Protected methods2050.00%
▷ Private methods615.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin