78% wp-speech-balloon

Code Review | WP-Speech-Balloon

WordPress plugin WP-Speech-Balloon scored 78% from 54 tests.

About plugin

  • Plugin page: wp-speech-balloon
  • Plugin version: 2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-5.1.1
  • WordPress version: 5.8.1
  • First release: Apr 11, 2019
  • Latest release: Apr 11, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tips4life (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 2,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.84MB] [CPU: ▼183.22ms] Passed 4 tests

An overview of server-side resources used by WP-Speech-Balloon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.934.19 ▼18.43
Dashboard /wp-admin1.81 ▼1.245.64 ▼35.95
Posts /wp-admin/edit.php1.81 ▼1.295.17 ▼32.22
Add New Post /wp-admin/post-new.php1.81 ▼3.625.62 ▼632.86
Media Library /wp-admin/upload.php1.81 ▼1.196.64 ▼31.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-Speech-Balloon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲8915.84 ▲0.219.00 ▼1.3246.59 ▼6.31
Dashboard /wp-admin2,972 ▲385.96 ▲0.00149.09 ▲6.34113.86 ▼8.77
Posts /wp-admin/edit.php2,738 ▼12.70 ▼0.0262.98 ▼0.7788.03 ▼4.12
Add New Post /wp-admin/post-new.php1,606 ▼27018.77 ▼0.35376.08 ▼1.53110.48 ▼6.01
Media Library /wp-admin/upload.php1,809 ▲25.05 ▼0.00141.27 ▼1.92111.55 ▼13.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_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 wsb handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-speech-balloon/css/style.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-speech-balloon/wp-speech-balloon.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in wp-speech-balloon/assets to your readme.txt
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

wp-speech-balloon/wp-speech-balloon.php Passed 13 tests

Analyzing the main PHP file in "WP-Speech-Balloon" version 2.4
75 characters long description:
Wordpressで簡単に吹き出し会話を使えるプラグインです。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected104 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22739102
CSS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions29
▷ Named functions29100.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
There were not PNG files found in your plugin