90% storefront-hamburger-menu

Code Review | Storefront Hamburger Menu

WordPress plugin Storefront Hamburger Menu scored90%from 54 tests.

About plugin

  • Plugin page: storefront-hambur...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9
  • WordPress version: 6.3.1
  • First release: Jan 26, 2016
  • Latest release: Aug 27, 2020
  • Number of updates: 12
  • Update frequency: every 140.7 days
  • Top authors: woothemes (91.67%)wpmuguru (16.67%)

Code review

54 tests

User reviews

10 reviews

Install metrics

4,000+ active /76,377 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.03MB] [CPU: ▼3.47ms] Passed 4 tests

Server-side resources used by Storefront Hamburger Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.03 ▼2.39
Dashboard /wp-admin3.34 ▲0.0355.50 ▼2.50
Posts /wp-admin/edit.php3.39 ▲0.0350.20 ▼2.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.43 ▼6.92
Media Library /wp-admin/upload.php3.26 ▲0.0339.00 ▲2.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Storefront Hamburger Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.74 ▲0.451.82 ▼0.0341.93 ▼0.34
Dashboard /wp-admin2,210 ▲335.56 ▼0.0992.25 ▲2.6840.18 ▼2.84
Posts /wp-admin/edit.php2,115 ▲152.11 ▲0.1338.22 ▼3.1635.00 ▼5.02
Add New Post /wp-admin/post-new.php1,536 ▲123.11 ▲5.07663.45 ▲23.7447.42 ▼30.05
Media Library /wp-admin/upload.php1,415 ▲124.21 ▲0.0498.14 ▼4.1343.76 ▼2.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • storefront-hamburger-menu-version
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ecommerce, storefront, hamburger, woocommerce, menu

storefront-hamburger-menu/storefront-hamburger-menu.php 92% from 13 tests

The principal PHP file in "Storefront Hamburger Menu" v. 1.2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin317 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
Sass1150114
PHP236131108
CSS13063
JavaScript44532

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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 are no PNG files in this plugin