84% simple-floating-menu

Code Review | Simple Floating Menu

WordPress plugin Simple Floating Menu scored84%from 54 tests.

About plugin

  • Plugin page: simple-floating-menu
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 30, 2020
  • Latest release: Sep 2, 2023
  • Number of updates: 43
  • Update frequency: every 29.2 days
  • Top authors: hashthemes (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

10,000+ active /150,717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.66MB] [CPU: ▼2.10ms] Passed 4 tests

A check of server-side resources used by Simple Floating Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /7.55 ▲4.0945.93 ▲5.24
Dashboard /wp-admin4.96 ▲1.6149.83 ▼11.73
Posts /wp-admin/edit.php5.07 ▲1.7250.15 ▲3.13
Add New Post /wp-admin/post-new.php7.54 ▲1.6596.87 ▼1.03
Media Library /wp-admin/upload.php4.88 ▲1.6538.51 ▲1.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
sfm_first_activation
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Floating Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.25 ▼1.245.31 ▲3.5241.89 ▼1.64
Dashboard /wp-admin2,226 ▲384.86 ▼0.02108.31 ▼7.6344.25 ▲0.77
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0140.47 ▲1.4637.47 ▲0.61
Add New Post /wp-admin/post-new.php1,543 ▲618.29 ▼0.04605.76 ▼85.2056.91 ▼7.64
Media Library /wp-admin/upload.php1,408 ▲204.21 ▼0.0597.88 ▼19.2644.84 ▼6.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-floating-menu/inc/google-fonts-list.php:178
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-floating-menu/frontend.php:128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-floating-menu/live-preview.php:191

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

simple-floating-menu/simple-floating-menu.php Passed 13 tests

The main PHP script in "Simple Floating Menu" version 1.2.6 is automatically included on every request by WordPress
66 characters long description:
Simple Floating Menu adds a stylish designed menu in your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected44,133 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS912,8785140,159
JavaScript52212611,988
PHP73424241,986

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity61.00
▷ Minimum class complexity24.00
▷ Maximum class complexity141.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods714.00%
▷ Public methods4386.00%
▷ Protected methods48.00%
▷ Private methods36.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.87MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/floating-circular-buttons.png58.15KB63.14KB0.00%
assets/img/side-full-menu.png480.11KB480.63KB0.00%
assets/img/banner-image.png255.78KB74.92KB▼ 70.71%
assets/img/upgrade-pro.png12.51KB5.35KB▼ 57.25%
assets/img/nav-menu.png9.97KB9.96KB0.07%