68% animated-fullscreen-menu

Code Review | Fullscreen Menu

WordPress plugin Fullscreen Menu scored68%from 54 tests.

About plugin

  • Plugin page: animated-fullscre...
  • Plugin version: 2.6.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 125
  • Update frequency: every 13.3 days
  • Top authors: samuelsilvapt (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /43,567 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: ▲0.66MB] [CPU: ▲2.32ms] Passed 4 tests

An overview of server-side resources used by Fullscreen Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6552.20 ▲6.48
Dashboard /wp-admin3.99 ▲0.6959.43 ▲8.61
Posts /wp-admin/edit.php4.04 ▲0.6851.81 ▲2.07
Add New Post /wp-admin/post-new.php6.52 ▲0.6491.72 ▼7.87
Media Library /wp-admin/upload.php3.92 ▲0.6944.22 ▲12.86
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.2740.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 671 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
fs_accounts
widget_recent-comments
fs_active_plugins
db_upgraded
widget_recent-posts
fs_debug_mode

Browser metrics Passed 4 tests

A check of browser resources used by Fullscreen Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲6714.35 ▼0.271.94 ▲0.0929.76 ▼18.05
Dashboard /wp-admin2,241 ▲615.71 ▲0.0895.65 ▼3.1544.46 ▲0.77
Posts /wp-admin/edit.php2,147 ▲472.01 ▲0.0638.06 ▼0.6137.54 ▲5.89
Add New Post /wp-admin/post-new.php1,563 ▲3723.21 ▲0.27701.91 ▲63.2135.17 ▼25.57
Media Library /wp-admin/upload.php1,449 ▲584.30 ▲0.0696.00 ▼4.5344.41 ▲0.74
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1111.7825.8429.00

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 9 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • fs_debug_mode
    • db_upgraded
    • can_compress_scripts
    • fs_accounts
    • fs_active_plugins
    • widget_theysaidso_widget
    • widget_recent-posts

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/vendor/CMB2/apigen/hook-docs.php
  • 46× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/example-functions.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animated-fullscreen-menu/frontend-animatedfsmenu.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/animated-fullscreen-menu/vendor/CMB2/includes/types/CMB2_Type_Textarea.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 93% from 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: animatedmenu, menu, fullscreenmenu, mobilemenu, woocommercemenu...

animated-fullscreen-menu/animated-fullscreen-menu.php 85% from 13 tests

This is the main PHP file of "Fullscreen Menu" version 2.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 197 characters long)
  • Git Repository: Please do not include Git repositories in your plugin

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 plugin110,495 lines of code in 421 files:
LanguageFilesBlank linesComment linesLines of code
PHP18810,64624,07344,899
PO File12014,31518,50232,323
JSON120011,505
CSS383761,3147,618
XML2004,498
JavaScript266739423,312
SVG2002,690
Sass18375302,117
Markdown1142001,327
YAML4166206

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 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity48.88
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes121
▷ Abstract classes119.09%
▷ Concrete classes11090.91%
▷ Final classes00.00%
Methods1,831
▷ Static methods29516.11%
▷ Public methods1,34573.46%
▷ Protected methods1095.95%
▷ Private methods37720.59%
Functions163
▷ Named functions163100.00%
▷ Anonymous functions00.00%
Constants159
▷ Global constants10163.52%
▷ Class constants5836.48%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/CMB2/apigen/theme-bootstrap/src/resources/resize.png0.12KB0.10KB▼ 13.22%
vendor/CMB2/apigen/theme-bootstrap/src/resources/inherit.png0.15KB0.10KB▼ 29.61%
vendor/CMB2/apigen/theme-bootstrap/src/resources/collapsed.png0.24KB0.14KB▼ 41.77%
vendor/CMB2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%