84% quadmenu-oceanwp

Code Review | QuadMenu - OceanWP Mega Menu

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

About plugin

  • Plugin page: quadmenu-oceanwp
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 29
  • Update frequency: every 39.0 days
  • Top authors: quadlayers (96.55%)quadmenu (6.9%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /22,970 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.86ms] Passed 4 tests

An overview of server-side resources used by QuadMenu - OceanWP Mega Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.56 ▼2.19
Dashboard /wp-admin3.32 ▲0.0243.81 ▼4.72
Posts /wp-admin/edit.php3.37 ▲0.0247.67 ▼7.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.86 ▼6.79
Media Library /wp-admin/upload.php3.25 ▲0.0235.05 ▼3.96

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
_quadmenu_compiler
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for QuadMenu - OceanWP Mega Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.22 ▼1.131.99 ▲0.1841.00 ▼3.48
Dashboard /wp-admin2,209 ▲215.79 ▼0.12104.57 ▼3.8841.98 ▼2.32
Posts /wp-admin/edit.php2,098 ▲91.99 ▲0.0239.62 ▼1.4535.81 ▼2.54
Add New Post /wp-admin/post-new.php1,544 ▲1123.16 ▲0.02678.05 ▲68.4363.76 ▲12.98
Media Library /wp-admin/upload.php1,400 ▲184.20 ▲0.0198.55 ▲0.8947.07 ▲0.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • _quadmenu_compiler
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quadmenu-oceanwp/quadmenu-oceanwp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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 have no corresponding images in /assets: #1 (QuadMenu working with OceanWP), #2 (This plugin adds a preconfigured "OceanWP" theme to QuadMenu settings.)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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

This is the main PHP file of "QuadMenu - OceanWP Mega Menu" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Integrates QuadMenu with the Divi theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16334251

PHP code Passed 2 tests

This is a very shot review 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.11
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.62KB0.64KB0.00%