84% bubiblock-slider

Code Review | BubiBlock Slider

WordPress plugin BubiBlock Slider scored84%from 54 tests.

About plugin

  • Plugin page: bubiblock-slider
  • Plugin version: 2.4.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 15
  • Update frequency: every 2.8 days
  • Top authors: franchidesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,561 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests

This is a short check of server-side resources used by BubiBlock Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.68 ▲5.16
Dashboard /wp-admin3.32 ▲0.0253.41 ▼3.29
Posts /wp-admin/edit.php3.37 ▲0.0151.02 ▲0.04
Add New Post /wp-admin/post-new.php6.12 ▲0.2384.82 ▼14.87
Media Library /wp-admin/upload.php3.24 ▲0.0140.86 ▲2.96

Server storage [IO: ▲2.24MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BubiBlock Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲15613.82 ▼0.559.82 ▲7.9090.76 ▲47.79
Dashboard /wp-admin2,208 ▲285.56 ▼0.0983.15 ▼11.2938.97 ▼5.52
Posts /wp-admin/edit.php2,116 ▲132.00 ▼0.0134.80 ▼5.6832.82 ▼4.46
Add New Post /wp-admin/post-new.php6,399 ▲4,86229.12 ▲10.78913.59 ▲274.8148.33 ▼16.09
Media Library /wp-admin/upload.php1,410 ▲74.21 ▲0.02101.94 ▲2.9244.15 ▲3.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/bubiblock-slider/src/assets/admin/admin.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: gutenberg slider, content slider, image slider, slider block, carousel...

bubiblock-slider/plugin.php 92% from 13 tests

The main PHP file in "BubiBlock Slider" ver. 2.4.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bubiblock-slider.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin11,327 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS7304195,734
JavaScript61952475,128
PHP22833309
Markdown1630156

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
7 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/assets/admin/images/bubiblock-setting-4.png21.88KB23.25KB0.00%
src/assets/admin/images/bubiblock-logo.png2.84KB2.98KB0.00%
src/assets/admin/images/bubiblock-slider-w.png5.78KB5.51KB▼ 4.68%
src/assets/admin/images/bubiblock-setting-3.png7.78KB8.11KB0.00%
src/assets/admin/images/bubiblock-header-admin.png14.08KB13.00KB▼ 7.66%