66% ai-speaker-yomiage-kun

Code Review | AI speaker ~YOMIAGE-KUN~

WordPress plugin AI speaker ~YOMIAGE-KUN~ scored66%from 54 tests.

About plugin

  • Plugin page: ai-speaker-yomiag...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2023
  • Latest release: Jun 26, 2023
  • Number of updates: 15
  • Update frequency: every 1.7 days
  • Top authors: nakamura1458 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /180 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.21MB] [CPU: ▼14.99ms] Passed 4 tests

An overview of server-side resources used by AI speaker ~YOMIAGE-KUN~
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.68 ▼3.65
Dashboard /wp-admin3.37 ▲0.0753.53 ▲0.24
Posts /wp-admin/edit.php3.42 ▲0.0654.72 ▲4.64
Add New Post /wp-admin/post-new.php4.86 ▼1.0354.21 ▼54.50
Media Library /wp-admin/upload.php3.30 ▲0.0737.64 ▼2.03
プラグイン認証と詳細 /wp-admin/admin.php?page=AIS_setting3.2431.75
音声の設定 /wp-admin/admin.php?page=AIS_speaker3.2428.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

AI speaker ~YOMIAGE-KUN~: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,042 ▲29622.16 ▲7.8720.64 ▲18.8547.71 ▲5.17
Dashboard /wp-admin2,283 ▲807.38 ▲1.51110.00 ▼9.1448.73 ▲2.25
Posts /wp-admin/edit.php2,183 ▲836.55 ▲4.5459.87 ▲22.5342.65 ▲7.74
Add New Post /wp-admin/post-new.php1,664 ▲11423.45 ▲0.37499.55 ▼142.0340.55 ▼19.34
Media Library /wp-admin/upload.php1,481 ▲818.73 ▲4.50120.83 ▲16.1847.41 ▼0.33
プラグイン認証と詳細 /wp-admin/admin.php?page=AIS_setting8926.2047.2964.91
音声の設定 /wp-admin/admin.php?page=AIS_speaker8316.1845.5739.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=AIS_setting
    • > Notice in wp-content/plugins/ai-speaker-yomiage-kun/settings/certification.php+22
    Undefined index: main
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=AIS_speaker
    • > Notice in wp-content/plugins/ai-speaker-yomiage-kun/settings/setting.php+22
    Undefined index: AIS_setting

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ai-speaker-yomiage-kun/settings/details.php
  • 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant AIspeaker_path - assumed 'AIspeaker_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 18
    • > PHP Warning
      Use of undefined constant AIspeaker_url - assumed 'AIspeaker_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 26
    • > PHP Warning
      Use of undefined constant AIspeaker_url - assumed 'AIspeaker_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php:97
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ai-speaker-yomiage-kun/settings/init_setting.php:16
    • > PHP Warning
      Use of undefined constant AIspeaker_path - assumed 'AIspeaker_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 30
    • > PHP Warning
      Use of undefined constant AIspeaker_path - assumed 'AIspeaker_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 5
    • > PHP Warning
      Use of undefined constant AIspeaker_url - assumed 'AIspeaker_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 25
    • > PHP Warning
      Use of undefined constant AIspeaker_path - assumed 'AIspeaker_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 29
    • > PHP Warning
      Use of undefined constant AIspeaker_path - assumed 'AIspeaker_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-speaker-yomiage-kun/settings/class.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=AIS_speaker
    • > Network (severe)
    wp-content/plugins/ai-speaker-yomiage-kun/contents/speech_setting.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=AIS_speaker
    • > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=b5d3b99262dfb659bd26+9:967
    The block \"ais/speech-block\" is registered with an invalid category \"ais\".

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (add "AI speaker ~YOMIAGE-KUN~".), #2 (authenticate the plugin.), #3 (settings.)
You can look at the official readme.txt

ai-speaker-yomiage-kun/AIspeaker.php 85% from 13 tests

The main PHP file in "AI speaker ~YOMIAGE-KUN~" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ai-speaker-yomiage-kun.php" instead of "AIspeaker.php")

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 detected592 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP711552467
JavaScript11195
CSS17430

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.27
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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
PNG images were not found in this plugin