83% hylsay-text-reading

Code Review | Hylsay Text Reading

WordPress plugin Hylsay Text Reading scored83%from 54 tests.

About plugin

  • Plugin page: hylsay-text-reading
  • Plugin version: 3.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Mar 22, 2022
  • Number of updates: 61
  • Update frequency: every 9.1 days
  • Top authors: hylsay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.61MB] [CPU: ▼17.61ms] Passed 4 tests

A check of server-side resources used by Hylsay Text Reading
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.07 ▼5.48
Dashboard /wp-admin3.39 ▲0.0845.79 ▼6.21
Posts /wp-admin/edit.php3.50 ▲0.1447.77 ▼0.14
Add New Post /wp-admin/post-new.php3.26 ▼2.6336.29 ▼58.61
Media Library /wp-admin/upload.php3.31 ▲0.0834.47 ▲1.48

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hylsay Text Reading
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16813.80 ▼0.4911.59 ▲9.5742.07 ▼4.95
Dashboard /wp-admin2,227 ▲395.90 ▲1.00101.16 ▲3.0446.12 ▲1.84
Posts /wp-admin/edit.php2,110 ▲182.05 ▼0.0140.31 ▼3.7640.07 ▲1.36
Add New Post /wp-admin/post-new.php1,529 ▲117.65 ▼5.35602.81 ▼70.6851.13 ▼6.51
Media Library /wp-admin/upload.php1,409 ▲214.22 ▼0.0195.82 ▼17.7147.66 ▼2.86

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hylsay-text-reading/baiduAudio.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Please describe screenshot #1 in hylsay-text-reading/assets to your readme.txt
You can take inspiration from this readme.txt

hylsay-text-reading/baiduAudio.php 92% from 13 tests

The primary PHP file in "Hylsay Text Reading" version 3.1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hylsay-text-reading.php" instead of "baiduAudio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,489 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS34132,373
PHP16716297
JavaScript262137
Markdown19011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin