84% megamenu-storefront

Code Review | Max Mega Menu - StoreFront Integration

WordPress plugin Max Mega Menu - StoreFront Integration scored84%from 54 tests.

About plugin

  • Plugin page: megamenu-storefront
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Nov 10, 2022
  • Number of updates: 38
  • Update frequency: every 61.9 days
  • Top authors: megamenu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /55,083 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.35ms] Passed 4 tests

Server-side resources used by Max Mega Menu - StoreFront Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0438.84 ▼4.95
Dashboard /wp-admin3.34 ▲0.0444.79 ▼0.58
Posts /wp-admin/edit.php3.39 ▲0.0448.77 ▲1.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.07 ▼13.66
Media Library /wp-admin/upload.php3.26 ▲0.0433.67 ▼2.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Max Mega Menu - StoreFront Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.58 ▼1.171.49 ▼0.7539.75 ▼7.58
Dashboard /wp-admin2,221 ▲394.85 ▼0.96111.58 ▲6.0143.60 ▲1.30
Posts /wp-admin/edit.php2,101 ▲92.18 ▲0.1740.08 ▼2.0637.16 ▲2.18
Add New Post /wp-admin/post-new.php1,545 ▲823.41 ▲0.19603.16 ▼33.8449.62 ▲2.33
Media Library /wp-admin/upload.php1,397 ▲64.26 ▲0.0399.43 ▲0.2444.91 ▲0.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/megamenu-storefront/megamenu-storefront.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: storefront, max mega menu, woocommerce

megamenu-storefront/megamenu-storefront.php Passed 13 tests

Analyzing the main PHP file in "Max Mega Menu - StoreFront Integration" version 1.0.3
51 characters long description:
Integrates Max Mega Menu with the StoreFront theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected196 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13517176
CSS13220

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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