83% flyout-menu-awesome

Code Review | Flyout Menu Awesome by Themes Awesome

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

About plugin

  • Plugin page: flyout-menu-awesome
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.8.1
  • First release: Jun 2, 2021
  • Latest release: Feb 1, 2022
  • Number of updates: 6
  • Update frequency: every 40.7 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 266 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼140.53ms] Passed 4 tests

This is a short check of server-side resources used by Flyout Menu Awesome by Themes Awesome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.34 ▲0.5036.88 ▲14.96
Dashboard /wp-admin3.66 ▲0.5937.83 ▲0.93
Posts /wp-admin/edit.php3.70 ▲0.6036.98 ▲6.21
Add New Post /wp-admin/post-new.php5.95 ▲0.5173.15 ▼573.13
Media Library /wp-admin/upload.php3.51 ▲0.5127.22 ▲3.86

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 569 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flyout Menu Awesome by Themes Awesome
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,206 ▲57521.28 ▲5.5917.08 ▲11.8676.36 ▲0.72
Dashboard /wp-admin3,330 ▲43110.69 ▲4.56190.35 ▲53.83170.41 ▲5.35
Posts /wp-admin/edit.php3,162 ▲4197.94 ▲4.70108.21 ▲43.92137.29 ▼3.94
Add New Post /wp-admin/post-new.php2,131 ▼1,61020.23 ▲1.58419.73 ▼49.28166.60 ▼1.50
Media Library /wp-admin/upload.php1,942 ▲1937.85 ▲2.31143.31 ▲4.08188.75 ▲3.13
Documentation /wp-admin/crb_carbon_fields_container_flyout_docs.php260.940.0421.73
Go Pro /wp-admin/crb_carbon_fields_container_flyout_go_pro.php260.940.0316.21
Flyout Menu /wp-admin/crb_carbon_fields_container_flyout_menu_awesome_opts.php260.940.0314.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /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\\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 'Walker_Nav_Menu' not found in wp-content/plugins/flyout-menu-awesome/nav-menu-walker.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Datastore/User_Meta_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Term_Condition.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Event\\Listener' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Event/PersistentListener.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/flyout-menu-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Network_Datastore.php:10
    • > 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/Post_Parent_ID_Condition.php:8
    • > 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/User_Capability_Condition.php:10

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: custom nav, menu, vertical menu, menu layout, custom menu...

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

"Flyout Menu Awesome by Themes Awesome" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin32,536 lines of code in 480 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1935,4729,08414,191
PHP1722,8247,27010,233
CSS185331,1832,944
PO File278231,0242,223
Sass5136801,943
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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