84% wp-easy-bubble-menu

Code Review | Easy Bubble Menu

WordPress plugin Easy Bubble Menu scored 84% from 54 tests.

About plugin

  • Plugin page: wp-easy-bubble-menu
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jan 16, 2015
  • Latest release: Mar 20, 2018
  • Number of updates: 55
  • Update frequency: every 21.1 days
  • Top authors: ecorvo (94.55%)Otto42 (7.27%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active / 8,601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼299.02ms] Passed 4 tests

This is a short check of server-side resources used by Easy Bubble Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0873.48 ▲0.89
Dashboard /wp-admin3.47 ▲0.0542.69 ▼8.80
Posts /wp-admin/edit.php3.69 ▲0.0548.14 ▼0.67
Add New Post /wp-admin/post-new.php6.93 ▼0.05117.06 ▼1,187.48
Media Library /wp-admin/upload.php3.34 ▲0.0446.60 ▲9.53
Bubble Menu /wp-admin/admin.php?page=wp_bubble_menu3.4633.01
History /wp-admin/admin.php?page=wpcm_history3.3233.99

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: 2 new tables, no new options
New tables
wp_wpcm_menu_links
wp_wpcm_menu_props

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Bubble Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,932 ▲21015.79 ▲0.5215.03 ▲6.732.69 ▼0.20
Dashboard /wp-admin2,924 ▲636.18 ▼0.02141.58 ▼28.57221.42 ▲26.50
Posts /wp-admin/edit.php2,722 ▲313.11 ▼0.1377.11 ▼1.21162.07 ▼13.04
Add New Post /wp-admin/post-new.php1,688 ▲4820.63 ▼0.37559.24 ▼8.95245.67 ▲48.52
Media Library /wp-admin/upload.php1,727 ▲325.63 ▲0.10163.08 ▼7.07266.29 ▲35.63
Bubble Menu /wp-admin/admin.php?page=wp_bubble_menu1,8442.7977.44181.80
History /wp-admin/admin.php?page=wpcm_history1,1882.6663.43130.46

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
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wpcm_menu_props
    • wp_wpcm_menu_links

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× 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/wp-easy-bubble-menu/core/wpcm_ajax_handler.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-easy-bubble-menu/wp_bubble_menu.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_wpcm_list() in wp-content/plugins/wp-easy-bubble-menu/history.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-easy-bubble-menu/wpcm_admin_edit.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 77 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-easy-bubble-menu/wp_bubble_menu.php 92% from 13 tests

The main PHP script in "Easy Bubble Menu" version 1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-easy-bubble-menu.php" instead of "wp_bubble_menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,503 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS2572193,040
PHP49535769
JavaScript44115694

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.92
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/alien.png2.01KB0.57KB▼ 71.82%
css/images/conatctora.png9.51KB4.40KB▼ 53.74%
css/images/maincontact.png5.26KB2.59KB▼ 50.75%
css/images/blue_bubbles.png47.37KB26.99KB▼ 43.03%
css/images/tshirt.png1.69KB0.44KB▼ 74.02%