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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▲4.91ms] Passed 4 tests
This is a short check of server-side resources used by Play.ht - Make Your Blog Posts Accessible With Text to Speech Audio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 46.03 ▼1.66 |
Dashboard /wp-admin | 4.00 ▲0.69 | 55.01 ▲3.69 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 56.98 ▲12.46 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.74 | 99.24 ▲13.68 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 42.60 ▲5.15 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 13 new options
New WordPress options |
---|
theysaidso_admin_options |
playHt_articleplayer_switch |
db_upgraded |
playht_Listenbutton_switch |
widget_recent-posts |
widget_theysaidso_widget |
playHtDarkMode |
playht_upgrade_342 |
can_compress_scripts |
playht_type_switch |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Play.ht - Make Your Blog Posts Accessible With Text to Speech Audio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 14.25 ▲0.02 | 1.77 ▼0.29 | 44.43 ▲0.95 |
Dashboard /wp-admin | 2,235 ▲47 | 5.88 ▲0.02 | 131.02 ▲10.32 | 44.26 ▼3.61 |
Posts /wp-admin/edit.php | 2,321 ▲232 | 4.83 ▲2.78 | 197.58 ▲160.39 | 39.09 ▲5.20 |
Add New Post /wp-admin/post-new.php | 6,511 ▲4,992 | 22.45 ▼0.60 | 1,034.08 ▲383.35 | 38.99 ▼16.18 |
Media Library /wp-admin/upload.php | 1,529 ▲138 | 6.72 ▲2.54 | 126.73 ▲25.44 | 43.21 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 13 options
- playHt_articleplayer_switch
- playht_button_switch
- can_compress_scripts
- theysaidso_admin_options
- playht_type_switch
- db_upgraded
- playHtDarkMode
- widget_recent-comments
- playht_listen_button_type
- playht_upgrade_342
- ...
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/play-ht/views/back-end/notice.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/play-ht/views/front-end/podcast_iframe.php:2
- > PHP Warning
Use of undefined constant WPPP_URI - assumed 'WPPP_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/play-ht/views/back-end/play_main_view.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Wordpress\\Play\\Component' not found in wp-content/plugins/play-ht/includes/classes/class-asset-handler.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/play-ht/views/back-end/crisp_chat.php:1
- > PHP Notice
Undefined variable: notice_text in wp-content/plugins/play-ht/views/back-end/notice.php on line 2
- > PHP Warning
Use of undefined constant WPPP_URI - assumed 'WPPP_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/play-ht/views/back-end/main_view_subscribed.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Wordpress\\Play\\Component' not found in wp-content/plugins/play-ht/admin/classes/class-post-type-admin-actions.php:10
- > PHP Notice
Undefined variable: dismiss in wp-content/plugins/play-ht/views/back-end/notice.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Wordpress\\Play\\Component' not found in wp-content/plugins/play-ht/includes/classes/Play_Admin_notice.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wordpress\\Play\\Component' not found in wp-content/plugins/play-ht/includes/classes/Play_Requests.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 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
8 plugin tags: podcast, text to audio, accessibility, seo, voice over...
play-ht/init.php 77% from 13 tests
The primary PHP file in "Play.ht - Make Your Blog Posts Accessible With Text to Speech Audio" version 3.6.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("play-ht.php" instead of "init.php")
- Domain Path: The domain path points to an invalid folder, "/language" does not exist
- Description: The description should be shorter than 140 characters (currently 190 characters long)
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
Everything looks great! No dangerous files found in this plugin3,786 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 866 | 976 | 3,651 |
SVG | 3 | 29 | 2 | 110 |
JavaScript | 17 | 0 | 0 | 17 |
JSON | 1 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 2 | 8.70% |
Methods | 159 | |
▷ Static methods | 36 | 22.64% |
▷ Public methods | 130 | 81.76% |
▷ Protected methods | 19 | 11.95% |
▷ Private methods | 10 | 6.29% |
Functions | 57 | |
▷ Named functions | 56 | 98.25% |
▷ Anonymous functions | 1 | 1.75% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pause-btn.png | 1.80KB | 1.52KB | ▼ 15.70% |
assets/images/audio-grey.png | 1.64KB | 1.51KB | ▼ 8.10% |
assets/images/profile-icon.png | 2.47KB | 2.50KB | 0.00% |
assets/images/mobile_page_player.png | 16.13KB | 0.72KB | ▼ 95.53% |
assets/images/pageplayer_placeholder.png | 106.96KB | 30.78KB | ▼ 71.22% |