78% xl-fly-menu

Code Review | XL Fly Menu

WordPress plugin XL Fly Menu scored 78% from 54 tests.

About plugin

  • Plugin page: xl-fly-menu
  • Plugin version: 1.0.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Jan 21, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webangon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼296.80ms] Passed 4 tests

An overview of server-side resources used by XL Fly Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1356.65 ▲0.77
Dashboard /wp-admin3.47 ▲0.0633.17 ▲1.85
Posts /wp-admin/edit.php3.75 ▲0.1237.85 ▲0.20
Add New Post /wp-admin/post-new.php7.00 ▲0.0497.33 ▼1,181.52
Media Library /wp-admin/upload.php3.41 ▲0.1123.65 ▼6.66
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php4.7049.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 169 new files
Database: no new tables, 3 new options
New WordPress options
xlfly
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by XL Fly Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,986 ▲23216.38 ▲0.789.39 ▲2.576.47 ▲3.82
Dashboard /wp-admin2,899 ▲416.09 ▼0.07116.77 ▼13.67158.33 ▼5.81
Posts /wp-admin/edit.php2,695 ▲73.24 ▲0.0265.18 ▲0.85143.62 ▲1.76
Add New Post /wp-admin/post-new.php1,673 ▼7918.13 ▼3.39397.00 ▼57.46160.88 ▲3.65
Media Library /wp-admin/upload.php1,705 ▲75.52 ▲0.05135.58 ▼1.45185.10 ▼7.48
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,44720.04504.19192.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 3 options
    • xlfly
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/xl-fly-menu/includes/walker/xlmega_walker.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xl-fly-menu/includes/xlfly-helper.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xl-fly-menu/admin/config/menu-meta.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'XL_Fly_Nav_Walker' not found in wp-content/plugins/xl-fly-menu/includes/frontend/view.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/xl-fly-menu/index.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: elementor, icon-font, mega-menu, megamenu

xl-fly-menu/index.php 77% from 13 tests

Analyzing the main PHP file in "XL Fly Menu" version 1.0.0.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("xl-fly-menu.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin35,148 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
PHP913,4111,42214,119
PO File203,1973,5946,490
CSS62954815,352
Sass1595234,803
JavaScript71,2663474,020
SVG300364

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.62
Average class complexity24.57
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity6.62
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods264
▷ Static methods4316.29%
▷ Public methods26399.62%
▷ Protected methods00.00%
▷ Private methods10.38%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%