84% quadmenu-storefront

Code Review | QuadMenu - Storefront Mega Menu

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

About plugin

  • Plugin page: quadmenu-storefront
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 7, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 34
  • Update frequency: every 33.3 days
  • Top authors: quadlayers (97.06%)quadmenu (5.88%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,497 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.14ms] Passed 4 tests

An overview of server-side resources used by QuadMenu - Storefront Mega Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.60 ▲0.32
Dashboard /wp-admin3.39 ▲0.0443.53 ▼13.36
Posts /wp-admin/edit.php3.44 ▲0.0847.10 ▲1.34
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.63 ▼17.83
Media Library /wp-admin/upload.php3.31 ▲0.0831.03 ▼1.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
_quadmenu_compiler
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuadMenu - Storefront Mega Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.23 ▼1.151.73 ▲0.1543.65 ▲4.40
Dashboard /wp-admin2,212 ▲275.86 ▼0.04109.09 ▼9.9441.71 ▼1.32
Posts /wp-admin/edit.php2,101 ▲122.02 ▼0.0040.38 ▲6.4736.11 ▲5.05
Add New Post /wp-admin/post-new.php1,558 ▲3018.35 ▲0.05622.02 ▼57.8468.56 ▲17.49
Media Library /wp-admin/upload.php1,397 ▲64.20 ▼0.0298.55 ▲2.2042.43 ▲0.68

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • _quadmenu_compiler
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quadmenu-storefront/quadmenu-storefront.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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 need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (QuadMenu Mega Menu working with Storefront), #2 (This plugin adds a preconfigured "Storefront" theme to fit QuadMenu Mega Menu settings.)
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected345 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18570345

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ 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%
Functions2
▷ Named functions2100.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 files were detected