84% quadmenu-generatepress

Code Review | QuadMenu - GeneratePress Mega Menu

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

About plugin

  • Plugin page: quadmenu-generate...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 26
  • Update frequency: every 39.2 days
  • Top authors: quadlayers (96.15%)quadmenu (7.69%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /6,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by QuadMenu - GeneratePress Mega Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.73 ▼0.38
Dashboard /wp-admin3.38 ▲0.0748.33 ▲0.33
Posts /wp-admin/edit.php3.43 ▲0.0750.60 ▼2.89
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.55 ▼8.48
Media Library /wp-admin/upload.php3.30 ▲0.0733.15 ▼2.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuadMenu - GeneratePress Mega Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.18 ▼1.121.62 ▼0.3552.51 ▲9.50
Dashboard /wp-admin2,218 ▲334.86 ▼0.08100.12 ▼21.6540.95 ▼5.77
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0238.33 ▼2.4634.90 ▼3.07
Add New Post /wp-admin/post-new.php1,551 ▲1818.33 ▼5.08607.69 ▲17.8868.98 ▲17.03
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0491.87 ▼3.0742.57 ▲1.52

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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/quadmenu-generatepress/quadmenu-generatepress.php

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 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: Please add images for these screenshots: #1 (QuadMenu Mega Menu working with GeneratePress), #2 (This plugin adds a preconfigured "GeneratePress" theme to fit QuadMenu Mega Menu settings.)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The principal PHP file in "QuadMenu - GeneratePress Mega Menu" v. 1.0.4 is loaded by WordPress automatically on each request
49 characters long description:
Integrates QuadMenu with the GeneratePress theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected414 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18715336
JavaScript126178

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin