87% 8degree-fly-menu-lite

Code Review | Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite

WordPress plugin Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite scored 87% from 54 tests.

About plugin

  • Plugin page: 8degree-fly-menu-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.2
  • WordPress version: 5.9.2
  • First release: Aug 14, 2017
  • Latest release: Aug 10, 2018
  • Number of updates: 25
  • Update frequency: every 14.5 days
  • Top authors: 8degreethemes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 9,744 total downloads

Benchmarks

Plugin footprint Passed 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.15MB] [CPU: ▼284.52ms] Passed 4 tests

This is a short check of server-side resources used by Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2655.24 ▲7.03
Dashboard /wp-admin3.60 ▲0.1939.77 ▲3.48
Posts /wp-admin/edit.php3.82 ▲0.1846.68 ▲10.12
Add New Post /wp-admin/post-new.php7.04 ▲0.08100.44 ▼1,145.91
Media Library /wp-admin/upload.php3.46 ▲0.1623.95 ▼2.66
Add New /wp-admin/post-new.php?post_type=edfm_menu3.9550.40
How to use /wp-admin/edit.php?post_type=edfm_menu&page=edfm-how-to3.4831.11
8Degree Fly Menus Lite /wp-admin/edit.php?post_type=edfm_menu3.5929.41
About /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about3.4725.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,265 ▲52118.58 ▲2.8714.66 ▲8.383.83 ▲1.81
Dashboard /wp-admin3,193 ▲3328.93 ▲2.71150.54 ▲12.32155.10 ▼7.88
Posts /wp-admin/edit.php3,022 ▲3285.59 ▲2.3596.23 ▲31.86138.50 ▼3.42
Add New Post /wp-admin/post-new.php1,753 ▲9216.59 ▲0.43400.13 ▼12.76159.95 ▲4.48
Media Library /wp-admin/upload.php1,809 ▲1116.49 ▲0.97113.30 ▼24.55185.83 ▼7.65
Add New /wp-admin/post-new.php?post_type=edfm_menu8,45611.85274.38213.59
How to use /wp-admin/edit.php?post_type=edfm_menu&page=edfm-how-to2,5637.84165.14216.84
8Degree Fly Menus Lite /wp-admin/edit.php?post_type=edfm_menu1,7025.4886.40113.28
About /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about1,7508.36153.96197.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 23× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/frontend/edfm-walker-class.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/edfm-search-form.php
    • > /wp-content/plugins/8degree-fly-menu-lite/eight-degree-fly-menu-lite.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-layout-settings.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/frontend/edfm-frontend-style.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-display-settings.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/boards/edfm-how-to.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-build-fly-menu.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-button-settings.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/frontend/edfm-fly-menu-layout/edfm-skew-menu.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about
    • > Javascript (severe) in unknown
    /wp-content/plugins/8degree-fly-menu-lite/js/wp-color-picker-alpha.js?ver=1.0.3 10:459 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 83% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

8degree-fly-menu-lite/eight-degree-fly-menu-lite.php 77% from 13 tests

"Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("8degree-fly-menu-lite.php" instead of "eight-degree-fly-menu-lite.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Plugin Name: Please shorten the plugin name (currently 75 characters long instead of max. 70)

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 detected24,626 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,0621,0819,343
CSS81994109,293
SVG2003,033
PHP243782142,957

PHP code Passed 2 tests

A short 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.52
Average class complexity63.00
▷ Minimum class complexity40.00
▷ Maximum class complexity86.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 0.37MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/notification-labels/sale_5.png3.21KB1.38KB▼ 56.98%
images/dropdown.png0.98KB0.15KB▼ 84.91%
images/edfm-backend-icons/edfm-left.png2.21KB0.66KB▼ 70.29%
images/edfm-backend-icons/top-right.png1.09KB0.12KB▼ 89.27%
images/notification-labels/Untitled-2.png14.12KB4.94KB▼ 65.02%