84% quadmenu-avada

Code Review | QuadMenu - Avada Mega Menu

WordPress plugin QuadMenu - Avada Mega Menu scored 84% from 54 tests.

About plugin

  • Plugin page: quadmenu-avada
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 31
  • Update frequency: every 36.5 days
  • Top authors: quadlayers (96.77%)quadmenu (6.45%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 13,744 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.07MB] [CPU: ▼4.82ms] Passed 4 tests

A check of server-side resources used by QuadMenu - Avada Mega Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.05 ▼2.05
Dashboard /wp-admin3.37 ▲0.0744.28 ▼5.05
Posts /wp-admin/edit.php3.43 ▲0.0745.65 ▼1.80
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.05 ▼10.38
Media Library /wp-admin/upload.php3.30 ▲0.0735.56 ▲2.08

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
_quadmenu_compiler
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

QuadMenu - Avada Mega Menu: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.26 ▼1.111.55 ▼0.1141.79 ▼3.22
Dashboard /wp-admin2,215 ▲275.79 ▲0.88101.41 ▼4.5341.60 ▼7.56
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0635.79 ▼2.5234.78 ▼0.63
Add New Post /wp-admin/post-new.php1,542 ▼023.35 ▲5.16608.21 ▼13.2462.23 ▼2.59
Media Library /wp-admin/upload.php1,397 ▲64.27 ▲0.0296.65 ▼2.1042.15 ▼2.22

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • _quadmenu_compiler
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quadmenu-avada/quadmenu-avada.php

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 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (QuadMenu Mega Menu working with Avada), #2 (This plugin adds a preconfigured "Avada" theme to fit QuadMenu Mega Menu settings.)
The official readme.txt might help

quadmenu-avada/quadmenu-avada.php Passed 13 tests

"QuadMenu - Avada Mega Menu" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Integrates QuadMenu with the Avada theme.

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
Everything looks great! No dangerous files found in this plugin332 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18328332

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.55KB1.55KB0.00%