83% quadmenu-twentyseventeen-integration

Code Review | QuadMenu - Twenty Seventeen Mega Menu

WordPress plugin QuadMenu - Twenty Seventeen Mega Menu scored83%from 54 tests.

About plugin

  • Plugin page: quadmenu-twentyse...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 22
  • Update frequency: every 51.6 days
  • Top authors: quadlayers (95.45%)quadmenu (9.09%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,674 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.13MB] [CPU: ▼17.19ms] Passed 4 tests

Analyzing server-side resources used by QuadMenu - Twenty Seventeen Mega Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.12 ▲0.43
Dashboard /wp-admin3.24 ▼0.1033.53 ▼24.32
Posts /wp-admin/edit.php3.31 ▼0.0537.98 ▼9.90
Add New Post /wp-admin/post-new.php5.48 ▼0.4174.76 ▼32.12
Media Library /wp-admin/upload.php3.25 ▲0.0232.41 ▼2.41

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
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_theysaidso_widget
_quadmenu_compiler
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by QuadMenu - Twenty Seventeen Mega Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.35 ▼0.001.61 ▼0.1842.28 ▲0.51
Dashboard /wp-admin2,210 ▲335.52 ▲0.0087.62 ▼4.9036.53 ▼5.86
Posts /wp-admin/edit.php2,113 ▲132.00 ▼0.1536.66 ▼2.1131.62 ▼4.44
Add New Post /wp-admin/post-new.php1,538 ▲1023.12 ▲0.19601.33 ▲1.2655.46 ▼6.72
Media Library /wp-admin/upload.php1,406 ▲64.29 ▲0.03101.54 ▲2.2142.56 ▲0.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • _quadmenu_compiler

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/quadmenu-twentyseventeen-integration/quadmenu-twentyseventeen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (QuadMenu working with TwentySeventeen), #2 (This plugin adds a preconfigured "TwentySeventeen" theme to QuadMenu settings.)
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

quadmenu-twentyseventeen-integration/quadmenu-twentyseventeen.php 92% from 13 tests

The main file in "QuadMenu - Twenty Seventeen Mega Menu" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("quadmenu-twentyseventeen-integration.php" instead of "quadmenu-twentyseventeen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected211 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15530211

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin