68% animated-fullscreen-menu

Code Review | FullScreen Menu - Mobile Friendly and Responsive

WordPress plugin FullScreen Menu - Mobile Friendly and Responsive scored 68% from 54 tests.

About plugin

  • Plugin page: animated-fullscre...
  • Plugin version: 2.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.1
  • WordPress version: 5.8.1
  • First release: Apr 30, 2019
  • Latest release: Nov 2, 2021
  • Number of updates: 97
  • Update frequency: every 9.5 days
  • Top authors: samuelsilvapt (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 15,929 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.21MB] [CPU: ▼126.74ms] 75% from 4 tests

An overview of server-side resources used by FullScreen Menu - Mobile Friendly and Responsive
Please fix the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.21MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.54 ▲5.8266.97 ▲43.29
Dashboard /wp-admin8.56 ▲5.5176.37 ▲28.69
Posts /wp-admin/edit.php8.56 ▲5.4581.54 ▲34.64
Add New Post /wp-admin/post-new.php9.77 ▲4.33129.73 ▼601.95
Media Library /wp-admin/upload.php8.56 ▲5.5668.96 ▲31.66
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius8.5660.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 537 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_debug_mode
fs_gdpr
fs_active_plugins

Browser metrics Passed 4 tests

A check of browser resources used by FullScreen Menu - Mobile Friendly and Responsive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲17515.95 ▲0.387.39 ▼0.5847.58 ▲1.12
Dashboard /wp-admin3,035 ▲986.08 ▲0.16154.33 ▲6.01137.65 ▲18.69
Posts /wp-admin/edit.php2,809 ▲702.71 ▲0.0375.12 ▲11.09105.93 ▲10.91
Add New Post /wp-admin/post-new.php1,723 ▲4016.64 ▼1.63365.31 ▼5.49112.83 ▼1.56
Media Library /wp-admin/upload.php1,878 ▲715.09 ▲0.11148.45 ▼17.44135.81 ▲7.02
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius1,5272.3658.4576.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/animated-fullscreen-menu/uninstall.php+12
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • fs_accounts
    • fs_gdpr

Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/animated-fullscreen-menu/freemius/templates/ajax-loader.php
  • 51× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animated-fullscreen-menu/CMB2/cmb2-conditionals/cmb2-conditionals.php:244
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/animated-fullscreen-menu/CMB2/includes/types/CMB2_Type_Title.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 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
6 plugin tags: allpagemenu, mobilemenu, fullscreenmenu, animatedmenu, menu...

animated-fullscreen-menu/animated-fullscreen-menu.php Passed 13 tests

This is the main PHP file of "FullScreen Menu - Mobile Friendly and Responsive" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Fullscreen Menu for your Website. Custom Design and Animation.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin101,771 lines of code in 350 files:
LanguageFilesBlank linesComment linesLines of code
PO File13020,02525,41544,881
PHP1719,60822,38838,451
JSON30010,558
CSS281,1891,1984,967
JavaScript154886311,928
Sass1631697
Markdown2860289

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,895)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity46.22
▷ Minimum class complexity1.00
▷ Maximum class complexity2,895.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes116
▷ Abstract classes108.62%
▷ Concrete classes10691.38%
▷ Final classes00.00%
Methods1,680
▷ Static methods26415.71%
▷ Public methods1,24373.99%
▷ Protected methods1076.37%
▷ Private methods33019.64%
Functions141
▷ Named functions141100.00%
▷ Anonymous functions00.00%
Constants141
▷ Global constants10473.76%
▷ Class constants3726.24%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
CMB2/images/ico-delete.png0.70KB0.72KB0.00%
CMB2/cmb2-icon-picker/icon-picker-field.png36.29KB10.30KB▼ 71.62%
CMB2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%