77% 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 77% 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: 6.3.1
  • 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

400+ active / 10,628 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.17MB] [CPU: ▼4.44ms] Passed 4 tests

A check of server-side resources used by Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.49 ▲2.25
Dashboard /wp-admin3.48 ▲0.1851.59 ▲3.77
Posts /wp-admin/edit.php3.60 ▲0.2449.60 ▼4.57
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.88 ▼18.29
Media Library /wp-admin/upload.php3.38 ▲0.1536.18 ▲2.84
Add New /wp-admin/post-new.php?post_type=edfm_menu3.6657.85
8Degree Fly Menus Lite /wp-admin/edit.php?post_type=edfm_menu3.4543.16
About /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about3.3934.66
How to use /wp-admin/edit.php?post_type=edfm_menu&page=edfm-how-to3.4036.94

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, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Responsive Off-Canvas Menu Plugin for WordPress - 8Degree Fly Menu Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,157 ▲42216.12 ▲1.4710.71 ▲9.05101.45 ▲53.19
Dashboard /wp-admin2,440 ▲2527.07 ▲1.18130.64 ▲27.9342.64 ▼0.18
Posts /wp-admin/edit.php2,352 ▲2633.88 ▲1.8453.21 ▲19.1732.77 ▼5.11
Add New Post /wp-admin/post-new.php1,606 ▲7823.39 ▲5.20698.87 ▲44.0241.52 ▼27.68
Media Library /wp-admin/upload.php1,488 ▲1034.76 ▲0.5183.37 ▼14.4147.10 ▲0.07
Add New /wp-admin/post-new.php?post_type=edfm_menu5,87310.99266.98110.28
8Degree Fly Menus Lite /wp-admin/edit.php?post_type=edfm_menu1,3163.8846.8126.79
About /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about1,3456.85116.5797.03
How to use /wp-admin/edit.php?post_type=edfm_menu&page=edfm-how-to1,9836.63130.6858.11

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 23× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-meta-box-preview.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/frontend/edfm-fly-menu.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/custom-post-type/edfm-meta-box/edfm-custom-css.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-custom-post-type.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/edfm-search-form.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/frontend/edfm-walker-class.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/nav-menu-settings/edfm-nav-menu-popup-settings.php
    • > /wp-content/plugins/8degree-fly-menu-lite/inc/backend/boards/edfm-about.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 | A shallow check that no browser errors were triggered
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-how-to
    • > 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
    • > GET request to /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/edit.php?post_type=edfm_menu&page=edfm-about
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

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 main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("8degree-fly-menu-lite.php" instead of "eight-degree-fly-menu-lite.php")
  • Plugin Name: A shorter plugin name is better (currently 75 characters long instead of max. 70)

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
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

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
38 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-sets/googlePlus.png6.98KB2.73KB▼ 60.91%
images/notification-labels/sale_2.png7.29KB2.63KB▼ 64.01%
images/edfm-backend-icons/edfm-drop.png1.62KB0.37KB▼ 77.36%
images/notification-labels/Untitled-2.png14.12KB4.94KB▼ 65.02%
images/notification-labels/sale-5.png11.23KB3.92KB▼ 65.07%