84% voice

Code Review | Voice Blocks

WordPress plugin Voice Blocks scored 84% from 54 tests.

About plugin

  • Plugin page: voice
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 23, 2020
  • Latest release: Jan 23, 2022
  • Number of updates: 19
  • Update frequency: every 34.7 days
  • Top authors: sunbreak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 3,209 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.94ms] Passed 4 tests

A check of server-side resources used by Voice Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.42 ▼4.14
Dashboard /wp-admin3.34 ▲0.0449.58 ▼0.73
Posts /wp-admin/edit.php3.39 ▲0.0349.72 ▲1.90
Add New Post /wp-admin/post-new.php6.99 ▲1.1089.93 ▼16.69
Media Library /wp-admin/upload.php3.26 ▲0.0336.03 ▲1.80

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

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

Browser metrics Passed 4 tests

Voice Blocks: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16914.97 ▲0.6028.29 ▲26.1044.70 ▼6.86
Dashboard /wp-admin2,220 ▲354.83 ▼0.07109.67 ▼7.0541.34 ▼6.37
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.0036.25 ▲1.4633.70 ▼4.39
Add New Post /wp-admin/post-new.php6,436 ▲4,90120.88 ▼2.29952.50 ▲327.9940.88 ▼12.72
Media Library /wp-admin/upload.php1,399 ▲114.25 ▲0.0095.04 ▼7.6744.05 ▼4.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/blocks/voice.php:73
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/voice/includes/dashboard.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/dashboard.php' (include_path='.:/usr/share/php') in wp-content/plugins/voice/includes/dashboard.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/includes/class-admin-menu.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/includes/class-admin-menu.php:70
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/voice/includes/dashboard.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
7 plugin tags: blocks, audio, block, tts, text-to-speech...

voice/voice.php 92% from 13 tests

The main file in "Voice Blocks" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 212 characters long)

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
Everything looks great! No dangerous files found in this plugin276 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP658166271
CSS3003
JavaScript2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/voice-logo-96.png20.50KB5.47KB▼ 73.30%
img/voice-logo-128.png25.33KB6.54KB▼ 74.19%
img/voice-logo-64.png13.69KB3.77KB▼ 72.48%