83% bubbleyes-for-woocommerce

Code Review | Bubbleyes for WooCommerce

WordPress plugin Bubbleyes for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: bubbleyes-for-woo...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2015
  • Latest release: May 15, 2015
  • Number of updates: 17
  • Update frequency: every 9.4 days
  • Top authors: hjvedvik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Bubbleyes for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.20 ▼3.33
Dashboard /wp-admin3.31 ▲0.0049.42 ▼6.96
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.99 ▼12.18
Media Library /wp-admin/upload.php3.23 ▲0.0038.10 ▲0.87

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bubbleyes for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.331.83 ▼0.1441.28 ▼3.54
Dashboard /wp-admin2,192 ▲125.57 ▼0.0087.15 ▼3.6840.34 ▲0.94
Posts /wp-admin/edit.php2,097 ▼61.95 ▼0.0336.19 ▼0.1936.26 ▼0.46
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▲0.56663.90 ▲13.0753.33 ▲1.44
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.00100.70 ▼1.2245.80 ▲1.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/category-edit-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/options.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/category-add-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bubbleyes-for-woocommerce/public/partials/button.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function selected() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/meta-box.php:4

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

bubbleyes-for-woocommerce/woocommerce-bubbleyes.php 85% from 13 tests

The entry point to "Bubbleyes for WooCommerce" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("bubbleyes-for-woocommerce.php" instead of "woocommerce-bubbleyes.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 plugin1,421 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP263708281,272
JavaScript231093
CSS231256

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.75
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods105
▷ Static methods87.62%
▷ Public methods9388.57%
▷ Protected methods21.90%
▷ Private methods109.52%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants19.09%
▷ Class constants1090.91%
▷ Public constants10100.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
3 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png20.92KB10.04KB▼ 52.03%
assets/banner-772x250.png20.88KB8.68KB▼ 58.45%
assets/screenshot-1.png111.17KB55.40KB▼ 50.17%