88% vbee-text-to-speech

Code Review | Vbee Text to Speech

WordPress plugin Vbee Text to Speech scored 88% from 54 tests.

About plugin

  • Plugin page: vbee-text-to-speech
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Jun 28, 2021
  • Latest release: Jun 28, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: vvhoangzk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 78 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼152.62ms] Passed 4 tests

An overview of server-side resources used by Vbee Text to Speech
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.0130.36 ▼5.90
Dashboard /wp-admin3.10 ▲0.0540.93 ▼4.53
Posts /wp-admin/edit.php3.19 ▲0.0943.06 ▼1.93
Add New Post /wp-admin/post-new.php4.69 ▼0.7458.54 ▼598.13
Media Library /wp-admin/upload.php3.04 ▲0.0434.49 ▲3.89

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Vbee Text to Speech
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,733 ▲16115.35 ▼0.218.10 ▼0.4243.63 ▼3.42
Dashboard /wp-admin3,007 ▲735.72 ▼0.23111.27 ▼41.45120.02 ▲10.95
Posts /wp-admin/edit.php2,901 ▲1622.70 ▼0.0165.38 ▲1.02110.43 ▲21.76
Add New Post /wp-admin/post-new.php1,362 ▼14011.35 ▼7.21347.87 ▼51.0317.06 ▼88.10
Media Library /wp-admin/upload.php1,561 ▼2464.61 ▼0.41101.82 ▼55.6093.08 ▼22.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vbee-text-to-speech/vbee.php
    • > /wp-content/plugins/vbee-text-to-speech/index.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vbee-text-to-speech/includes/admin-setting-class.php:291
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vbee-text-to-speech/includes/admin-convert-class.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vbee-text-to-speech/includes/frontend-setting-class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: texttospeech, vbee, extensions

vbee-text-to-speech/vbee.php 77% from 13 tests

This is the main PHP file of "Vbee Text to Speech" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 728 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("vbee-text-to-speech.php" instead of "vbee.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected880 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP67172651
JavaScript187124
Sass190103
CSS1012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity23.33
▷ Minimum class complexity10.00
▷ Maximum class complexity34.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected