84% quadmenu-astra

Code Review | QuadMenu - Astra Mega Menu

WordPress plugin QuadMenu - Astra Mega Menu scored84%from 54 tests.

About plugin

  • Plugin page: quadmenu-astra
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 36
  • Update frequency: every 30.3 days
  • Top authors: quadlayers (97.22%)quadmenu (5.56%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /22,100 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.76ms] Passed 4 tests

Analyzing server-side resources used by QuadMenu - Astra Mega Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0642.99 ▼0.98
Dashboard /wp-admin3.41 ▲0.0655.30 ▲2.62
Posts /wp-admin/edit.php3.52 ▲0.1249.58 ▼2.20
Add New Post /wp-admin/post-new.php5.99 ▲0.0687.02 ▼9.21
Media Library /wp-admin/upload.php3.33 ▲0.0637.70 ▲1.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
_quadmenu_compiler
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuadMenu - Astra Mega Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.37 ▲0.021.65 ▲0.0343.22 ▼2.28
Dashboard /wp-admin2,201 ▲215.56 ▼0.0993.83 ▼7.0942.92 ▼1.18
Posts /wp-admin/edit.php2,110 ▲72.00 ▲0.0435.18 ▼0.6136.53 ▲1.86
Add New Post /wp-admin/post-new.php1,545 ▲1923.12 ▲0.16648.43 ▼16.2457.82 ▼5.02
Media Library /wp-admin/upload.php1,412 ▲124.14 ▼0.0895.71 ▼6.9545.31 ▲4.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • _quadmenu_compiler
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/quadmenu-astra/quadmenu-astra.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (QuadMenu Mega Menu working with Astra), #2 (This plugin adds a preconfigured "Astra" theme to fit QuadMenu Mega Menu settings.)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can look at the official readme.txt

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

Analyzing the main PHP file in "QuadMenu - Astra Mega Menu" version 1.1.5
53 characters long description:
Integrates QuadMenu with the Woocommerce Astra theme.

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
Good job! No executable or dangerous file extensions detected249 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16627249

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.10
▷ 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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin