68% speech-balloon-maker

Code Review | Speech Balloon Maker (ふきだしメーカー)

WordPress plugin Speech Balloon Maker (ふきだしメーカー) scored68%from 54 tests.

About plugin

  • Plugin page: speech-balloon-maker
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: May 31, 2018
  • Latest release: Apr 29, 2019
  • Number of updates: 16
  • Update frequency: every 20.9 days
  • Top authors: densuke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,427 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.82MB] [CPU: ▼59.05ms] Passed 4 tests

This is a short check of server-side resources used by Speech Balloon Maker (ふきだしメーカー)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.305.96 ▼32.65
Dashboard /wp-admin2.20 ▼1.158.23 ▼60.04
Posts /wp-admin/edit.php2.20 ▼1.169.06 ▼38.66
Add New Post /wp-admin/post-new.php2.20 ▼3.699.42 ▼97.41
Media Library /wp-admin/upload.php2.20 ▼1.038.86 ▼40.08
Speech Balloon Maker /wp-admin/tools.php?page=dn_sbm_menu2.208.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Speech Balloon Maker (ふきだしメーカー)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.23 ▼0.121.69 ▼0.7840.05 ▼4.87
Dashboard /wp-admin2,205 ▲285.62 ▼0.0091.56 ▼3.7139.58 ▼0.76
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0339.59 ▲2.5534.78 ▼1.51
Add New Post /wp-admin/post-new.php1,532 ▼623.12 ▲4.86687.12 ▲21.0764.85 ▼1.49
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.04111.32 ▲5.2648.25 ▲8.16
Speech Balloon Maker /wp-admin/tools.php?page=dn_sbm_menu1,1503.1143.8925.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dn_sbm_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=dn_sbm_menu
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dn_sbm_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/tools.php?page=dn_sbm_menu
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dn_sbm_setting_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/tools.php?page=dn_sbm_menu
    • > Notice in wp-content/plugins/speech-balloon-maker/plugin.php+177
    Undefined property: dn_sbm_baloonmakerclass::$curvestr

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speech-balloon-maker/plugin.php:44

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)
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
5 plugin tags: speech bubble, balloon, bubble, speech balloon, fukidashi

speech-balloon-maker/plugin.php 92% from 13 tests

The main PHP file in "Speech Balloon Maker (ふきだしメーカー)" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("speech-balloon-maker.php" instead of "plugin.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
There were no executable files found in this plugin504 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15248214
CSS22210205
PO File123257
JavaScript112428

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dn_sbm_default_org.png16.13KB5.89KB▼ 63.47%
images/dn_sbm_default.png1.31KB1.28KB▼ 2.46%