10% larbous-floating-menu

Code Review | Larbous Floating Menu

WordPress plugin Larbous Floating Menu scored10%from 54 tests.

About plugin

  • Plugin page: larbous-floating-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: Aug 25, 2014
  • Number of updates: 12
  • Update frequency: every 7.6 days
  • Top authors: lsobral (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,992 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/larbous-floating-menu/larbous-floating-menu.php+251
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.95ms] Passed 4 tests

Analyzing server-side resources used by Larbous Floating Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.69 ▲5.02
Dashboard /wp-admin3.31 ▲0.0050.02 ▼2.50
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▲0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.91 ▼5.55
Media Library /wp-admin/upload.php3.23 ▲0.0035.95 ▲4.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Larbous Floating Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2813.28 ▼1.271.79 ▼0.0344.00 ▼2.49
Dashboard /wp-admin2,198 ▲305.61 ▲0.0591.46 ▲0.0341.28 ▼2.64
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0439.54 ▲3.2236.12 ▼1.17
Add New Post /wp-admin/post-new.php1,528 ▼923.35 ▲5.37681.24 ▲38.6652.30 ▼15.82
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.03110.88 ▼0.8446.17 ▼1.23

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/larbous-floating-menu/larbous-floating-menu.php on line 251

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Collapsed menu), #2 (Active Option), #3 (Floating Settings Menu)
The official readme.txt is a good inspiration

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

The entry point to "Larbous Floating Menu" version 1.1 is a PHP file that has certain tags in its header comment area
101 characters long description:
This plugin creates a fixed floating menu at left position. Set the options in Settings/Floating Menu

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin406 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File44492191
PHP24254173
CSS15039
JavaScript1153

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin