84% fixed-bottom-menu

Code Review | Fixed Bottom Menu

WordPress plugin Fixed Bottom Menu scored84%from 54 tests.

About plugin

  • Plugin page: fixed-bottom-menu
  • Plugin version: 1.30
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2019
  • Latest release: Oct 29, 2023
  • Number of updates: 69
  • Update frequency: every 20.9 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

5,000+ active /40,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.96ms] Passed 4 tests

Server-side resources used by Fixed Bottom Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.46 ▲10.33
Dashboard /wp-admin3.32 ▲0.0242.05 ▼10.98
Posts /wp-admin/edit.php3.37 ▲0.0145.67 ▲1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.24 ▼19.87
Media Library /wp-admin/upload.php3.24 ▲0.0134.72 ▲1.48
Fixed Bottom Menu /wp-admin/options-general.php?page=fixedbottommenu3.2129.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
fixedbottommenu_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fixed Bottom Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9014.35 ▲0.071.72 ▲0.0147.72 ▲10.24
Dashboard /wp-admin2,199 ▲215.56 ▼0.0981.06 ▼19.6837.31 ▼0.82
Posts /wp-admin/edit.php2,104 ▲71.95 ▼0.0440.08 ▲3.8436.95 ▲2.96
Add New Post /wp-admin/post-new.php1,529 ▲123.59 ▲0.48667.82 ▼32.9752.56 ▼11.90
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0297.89 ▲1.5144.19 ▼1.71
Fixed Bottom Menu /wp-admin/options-general.php?page=fixedbottommenu1,7842.6262.9625.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenuadmin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenu.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fixed-bottom-menu/lib/class-fixedbottommenu.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: footer, menu

fixed-bottom-menu/fixedbottommenu.php 92% from 13 tests

"Fixed Bottom Menu" version 1.30's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fixed-bottom-menu.php" instead of "fixedbottommenu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin923 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP496191817
CSS20053
JavaScript2113653

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity50.00
▷ Minimum class complexity20.00
▷ Maximum class complexity80.00
Average method complexity6.16
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1368.42%
▷ Protected methods00.00%
▷ Private methods631.58%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin