90% word-balloon

Code Review | Word Balloon

WordPress plugin Word Balloon scored90%from 54 tests.

About plugin

  • Plugin page: word-balloon
  • Plugin version: 4.20.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.3-6.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2018
  • Latest release: Nov 7, 2023
  • Number of updates: 644
  • Update frequency: every 3.2 days
  • Top authors: back2nature (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /288,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.46ms] Passed 4 tests

A check of server-side resources used by Word Balloon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.20 ▼4.09
Dashboard /wp-admin3.57 ▲0.2747.18 ▼6.69
Posts /wp-admin/edit.php3.69 ▲0.3348.79 ▼6.41
Add New Post /wp-admin/post-new.php6.59 ▲0.70113.99 ▲4.87
Media Library /wp-admin/upload.php3.50 ▲0.2638.46 ▲3.34
Word Balloon /wp-admin/options-general.php?page=word-balloon3.7542.21

Server storage [IO: ▲1.06MB] [DB: ▲0.05MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 352 new files
Database: 1 new table, 11 new options
New tables
wp_word_balloon
New WordPress options
word_balloon_post_settings
word_balloon_admin_settings
widget_theysaidso_widget
db_upgraded
word_balloon_system_settings
word_balloon_db_version
word_balloon_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Word Balloon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.25 ▼0.191.63 ▼0.1338.99 ▼5.51
Dashboard /wp-admin2,199 ▲225.62 ▲0.0495.85 ▲1.7537.89 ▼4.88
Posts /wp-admin/edit.php2,107 ▲41.94 ▼0.0139.85 ▼4.6237.52 ▼1.22
Add New Post /wp-admin/post-new.php5,097 ▲3,57122.79 ▼0.22894.62 ▲294.2538.90 ▼7.40
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.08104.40 ▲6.6545.37 ▲2.52
Word Balloon /wp-admin/options-general.php?page=word-balloon1,7673.3362.2586.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt is a good inspiration

word-balloon/word-balloon.php Passed 13 tests

The entry point to "Word Balloon" version 4.20.3 is a PHP file that has certain tags in its header comment area
102 characters long description:
Support for Block editor(Gutenberg) & Classic Editor.You will easy to add speech balloon in your post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,239 lines of code in 342 files:
LanguageFilesBlank linesComment linesLines of code
PHP812,2713435,434
JavaScript1202,8085224,555
PO File1346501770
CSS8550285
SVG5102191
JSON4004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions140
▷ Named functions13797.86%
▷ Anonymous functions32.14%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/blank.png1.02KB0.09KB▼ 90.94%