84% quadmenu-megamenu

Code Review | QuadMenu Importer for Max Mega Menu

WordPress plugin QuadMenu Importer for Max Mega Menu scored84%from 54 tests.

About plugin

  • Plugin page: quadmenu-megamenu
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Aug 27, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 16
  • Update frequency: every 58.1 days
  • Top authors: quadlayers (93.75%)quadmenu (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.90ms] Passed 4 tests

This is a short check of server-side resources used by QuadMenu Importer for Max Mega Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.62 ▲0.87
Dashboard /wp-admin3.40 ▲0.1044.07 ▼2.49
Posts /wp-admin/edit.php3.45 ▲0.0946.19 ▼1.72
Add New Post /wp-admin/post-new.php6.00 ▲0.1180.85 ▼4.19
Media Library /wp-admin/upload.php3.32 ▲0.0935.17 ▼3.18

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for QuadMenu Importer for Max Mega Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.73 ▼0.021.62 ▼0.2437.74 ▼5.66
Dashboard /wp-admin2,220 ▲314.86 ▼0.05106.60 ▼5.3340.77 ▲1.44
Posts /wp-admin/edit.php2,103 ▲112.02 ▲0.0139.57 ▲2.5035.70 ▲4.19
Add New Post /wp-admin/post-new.php1,525 ▼817.38 ▼6.06676.60 ▼47.9956.48 ▲3.95
Media Library /wp-admin/upload.php1,399 ▲114.23 ▲0.03100.27 ▼15.3441.40 ▼5.44

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Tags: There are too many tags (21 tag instead of maximum 10)
The official readme.txt is a good inspiration

quadmenu-megamenu/quadmenu-megamenu.php 92% from 13 tests

"QuadMenu Importer for Max Mega Menu" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin450 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112228417
JavaScript17033

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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