84% wp-speech-contents

Code Review | WP Speech Contents

WordPress plugin WP Speech Contents scored84%from 54 tests.

About plugin

  • Plugin page: wp-speech-contents
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Sep 13, 2017
  • Latest release: Sep 13, 2017
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: kt_shin1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /852 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.48ms] Passed 4 tests

This is a short check of server-side resources used by WP Speech Contents
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.66 ▼1.45
Dashboard /wp-admin3.32 ▲0.0142.11 ▼15.00
Posts /wp-admin/edit.php3.37 ▲0.0144.50 ▼4.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.00 ▼4.05
Media Library /wp-admin/upload.php3.24 ▲0.0132.91 ▼2.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Speech Contents
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.27 ▼1.111.98 ▲0.0341.47 ▼1.94
Dashboard /wp-admin2,206 ▲184.89 ▼1.00110.30 ▼6.7341.15 ▼2.74
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0540.37 ▲2.8134.08 ▲2.79
Add New Post /wp-admin/post-new.php1,542 ▲1418.09 ▼0.24584.17 ▼37.5850.92 ▲2.45
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0194.18 ▼11.8242.13 ▼2.48

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-speech-contents/wp-speech-contents.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: webspeechapi

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

"WP Speech Contents" version 0.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
16 characters long description:
Read the content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin101 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182152
JavaScript15131
PO File12218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
There are no PNG files in this plugin