74% bubble-menu

Code Review | Bubble Menu - circle floating menu

WordPress plugin Bubble Menu - circle floating menu scored74%from 54 tests.

About plugin

  • Plugin page: bubble-menu
  • Plugin version: 3.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Oct 30, 2023
  • Number of updates: 47
  • Update frequency: every 51.7 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /28,909 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.62ms] Passed 4 tests

Analyzing server-side resources used by Bubble Menu - circle floating menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.20 ▲0.96
Dashboard /wp-admin3.43 ▲0.1344.43 ▼7.43
Posts /wp-admin/edit.php3.54 ▲0.1948.54 ▲0.20
Add New Post /wp-admin/post-new.php6.01 ▲0.1381.68 ▼20.22
Media Library /wp-admin/upload.php3.35 ▲0.1336.16 ▲3.52
Bubble Menu /wp-admin/admin.php?page=bubble-menu3.4433.82
All Plugins /wp-admin/admin.php?page=wow-company3.3231.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 144 new files
Database: 1 new table, 6 new options
New tables
wp_wow_bmp
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bubble Menu - circle floating menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11614.25 ▼0.101.87 ▲0.2241.97 ▼0.84
Dashboard /wp-admin2,252 ▲785.54 ▼0.1087.42 ▼5.4540.46 ▲1.22
Posts /wp-admin/edit.php2,163 ▲602.03 ▲0.0538.78 ▲2.7433.46 ▼2.45
Add New Post /wp-admin/post-new.php1,548 ▲723.31 ▲0.30654.87 ▲44.4553.48 ▼8.74
Media Library /wp-admin/upload.php1,466 ▲724.22 ▼0.1498.72 ▲0.6242.50 ▲1.04
Bubble Menu /wp-admin/admin.php?page=bubble-menu1,1282.2147.5550.91
All Plugins /wp-admin/admin.php?page=wow-company9232.0026.5541.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_wow_bmp
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bubble-menu/admin/settings/options/menu.php:134
    • > PHP Notice
      Undefined variable: icons_new in wp-content/plugins/bubble-menu/admin/settings/options/clone.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bubble-menu/admin/settings/options/clone.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Admin panel), #2 (Contacts block), #3 (Skype menu)
The official readme.txt is a good inspiration

bubble-menu/bubble-menu.php Passed 13 tests

The main PHP file in "Bubble Menu - circle floating menu" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Creating awesome circle menu with icons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin30,070 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
CSS184,68316411,961
SVG4009,571
PHP325665975,998
JavaScript122244211,348
Sass1418711,192

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.40
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods51
▷ Static methods35.88%
▷ Public methods4384.31%
▷ Protected methods11.96%
▷ Private methods713.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/about/image/icon.png121.88KB28.08KB▼ 76.96%
admin/assets/img/logo.png7.70KB2.31KB▼ 69.97%