73% flyout-menu-awesome

Code Review | Flyout Menu Awesome by Themes Awesome

WordPress plugin Flyout Menu Awesome by Themes Awesome scored73%from 54 tests.

About plugin

  • Plugin page: flyout-menu-awesome
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Dec 16, 2022
  • Number of updates: 7
  • Update frequency: every 80.3 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.93MB] [CPU: ▲10.55ms] Passed 4 tests

Server-side resources used by Flyout Menu Awesome by Themes Awesome
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.43 ▲1.9763.40 ▲23.19
Dashboard /wp-admin5.28 ▲1.9464.28 ▲2.51
Posts /wp-admin/edit.php5.33 ▲1.9867.06 ▲15.72
Add New Post /wp-admin/post-new.php7.81 ▲1.9394.42 ▲3.67
Media Library /wp-admin/upload.php5.12 ▲1.8952.17 ▲20.30

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 569 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Flyout Menu Awesome by Themes Awesome: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,226 ▲48019.12 ▲4.6910.32 ▲8.5836.27 ▼11.07
Dashboard /wp-admin2,529 ▲3409.16 ▲4.22187.85 ▲78.0036.84 ▲0.87
Posts /wp-admin/edit.php2,446 ▲3546.10 ▲4.0583.58 ▲44.5433.36 ▼0.65
Add New Post /wp-admin/post-new.php1,612 ▲8919.90 ▼3.31674.47 ▲54.4035.41 ▼16.54
Media Library /wp-admin/upload.php1,572 ▲1816.57 ▲2.44106.16 ▲5.2242.05 ▼2.53
Documentation /wp-admin/crb_carbon_fields_container_flyout_docs.php260.440.1313.47
Go Pro /wp-admin/crb_carbon_fields_container_flyout_go_pro.php260.440.066.69
Flyout Menu /wp-admin/crb_carbon_fields_container_flyout_menu_awesome_opts.php260.440.066.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 125× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Header_Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Post_Meta_Container.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/File_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Date_Field' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Time_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Nav_Menu_Item_Container.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/crb_carbon_fields_container_flyout_docs.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_flyout_docs.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_flyout_go_pro.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_flyout_go_pro.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_flyout_menu_awesome_opts.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_flyout_menu_awesome_opts.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: custom nav, custom menu, vertical menu, menu layout, menu...

flyout-menu-awesome/flyout-menu-awesome.php Passed 13 tests

The primary PHP file in "Flyout Menu Awesome by Themes Awesome" version 1.0.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
WordPress menu interface element with custom layouts and effects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin32,539 lines of code in 480 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1935,4729,08414,191
PHP1722,8247,27010,236
CSS185331,1832,944
PO File278231,0242,223
Sass5136801,943
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.21
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces26
Interfaces6
Traits0
Classes137
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
Methods970
▷ Static methods10210.52%
▷ Public methods79481.86%
▷ Protected methods16617.11%
▷ Private methods101.03%
Functions124
▷ Named functions3729.84%
▷ Anonymous functions8770.16%
Constants39
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected