84% quadmenu-divi

Code Review | QuadMenu - Divi Mega Menu

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

About plugin

  • Plugin page: quadmenu-divi
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 43
  • Update frequency: every 26.0 days
  • Top authors: quadlayers (97.67%)quadmenu (4.65%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /56,972 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
Installer ran successfully

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

An overview of server-side resources used by QuadMenu - Divi Mega Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.85 ▲1.45
Dashboard /wp-admin3.38 ▲0.0351.40 ▼10.19
Posts /wp-admin/edit.php3.43 ▲0.0749.66 ▼2.12
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.43 ▼22.32
Media Library /wp-admin/upload.php3.31 ▲0.0737.71 ▲1.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
_quadmenu_compiler

Browser metrics Passed 4 tests

QuadMenu - Divi Mega Menu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.39 ▲0.041.84 ▲0.3344.79 ▲4.87
Dashboard /wp-admin2,207 ▲365.51 ▼0.2082.46 ▼3.9940.68 ▼2.35
Posts /wp-admin/edit.php2,110 ▲101.95 ▼0.0536.07 ▼1.1435.75 ▼3.27
Add New Post /wp-admin/post-new.php1,535 ▲723.01 ▼0.08644.84 ▼36.9749.30 ▼3.62
Media Library /wp-admin/upload.php1,412 ▲154.18 ▲0.0599.31 ▼17.4945.22 ▼5.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • _quadmenu_compiler

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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-divi/quadmenu-divi.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (QuadMenu Mega Menu working with Divi), #2 (This plugin adds a preconfigured "Divi" theme to fit QuadMenu Mega Menu settings.)
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main file in "QuadMenu - Divi Mega Menu" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
Integrates QuadMenu with the Divi theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected512 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18812390
LESS14517122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.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
No PNG files were detected