89% guten-bubble

Code Review | Guten-bubble

WordPress plugin Guten-bubble scored89%from 54 tests.

About plugin

  • Plugin page: guten-bubble
  • Plugin version: 0.9.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Jan 29, 2023
  • Number of updates: 8
  • Update frequency: every 182.5 days
  • Top authors: niatn1012 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,877 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
Install script ran successfully

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

An overview of server-side resources used by Guten-bubble
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.99 ▼7.25
Dashboard /wp-admin3.33 ▲0.0351.15 ▲1.41
Posts /wp-admin/edit.php3.45 ▲0.1051.76 ▲4.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.38 ▼11.04
Media Library /wp-admin/upload.php3.24 ▲0.0135.52 ▲2.76
Guten-bubble /wp-admin/options-general.php?page=guten-bubble-options3.2435.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Guten-bubble
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲19214.51 ▲0.141.61 ▼0.6539.67 ▼5.39
Dashboard /wp-admin2,351 ▲1606.44 ▲1.55126.95 ▲9.9140.50 ▼5.26
Posts /wp-admin/edit.php2,257 ▲1683.31 ▲1.2746.98 ▲10.0231.28 ▼4.57
Add New Post /wp-admin/post-new.php6,185 ▲4,65218.94 ▼4.28867.85 ▲216.0338.14 ▼18.07
Media Library /wp-admin/upload.php1,399 ▲114.20 ▼0.0079.47 ▼28.9142.65 ▼0.13
Guten-bubble /wp-admin/options-general.php?page=guten-bubble-options1,1473.2649.2367.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots require images: #1 (Guten-bubble block), #2 (Settings page)
The official readme.txt is a good inspiration

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

"Guten-bubble" version 0.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Displays a speech bubble like a chat conversation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,195 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS41210728
JavaScript21820571
Sass22834424
PO File2170264249
PHP23630222
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.46MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/09-monotone.png1.63KB1.22KB▼ 25.01%
screenshot-1.png290.73KB76.52KB▼ 73.68%
img/01-rose.png2.32KB1.33KB▼ 42.66%
img/06-sky.png2.32KB1.33KB▼ 42.79%
img/04-lime.png2.46KB1.35KB▼ 44.85%