Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/text-to-speech/text-to-speech.php+54
Methods with the same name as their class will not be constructors in a future version of PHP; TextToSpeechWidget has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼55.99ms] Passed 4 tests
Server-side resources used by Text to Speech
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 4.30 ▼38.92 |
Dashboard /wp-admin | 2.20 ▼1.14 | 5.95 ▼58.11 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 8.18 ▼35.13 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 5.24 ▼91.81 |
Media Library /wp-admin/upload.php | 2.20 ▼1.02 | 6.35 ▼30.26 |
Text to Speech /wp-admin/options-general.php?page=text-to-speech/text-to-speech.php | 2.20 | 6.69 |
Server storage [IO: ▲4.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
widget_texttospeechwidget |
tts_amplitude |
tts_all_options |
tts_workdgap |
widget_recent-comments |
tts_speed |
tts_pitch |
theysaidso_admin_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Text to Speech
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 15.32 ▲0.95 | 133.67 ▲131.79 | 36.68 ▼6.02 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.03 | 101.95 ▼12.22 | 38.91 ▼5.26 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.05 | 35.94 ▼5.46 | 30.54 ▼7.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.51 ▲0.55 | 618.49 ▼9.43 | 52.13 ▼4.26 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.24 ▲0.06 | 96.49 ▼5.84 | 42.18 ▼2.01 |
Text to Speech /wp-admin/options-general.php?page=text-to-speech/text-to-speech.php | 962 | 2.17 | 22.55 | 32.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/text-to-speech/text-to-speech.php+54
Methods with the same name as their class will not be constructors in a future version of PHP; TextToSpeechWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_texttospeechwidget
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=text-to-speech/text-to-speech.php
- > Deprecated in wp-content/plugins/text-to-speech/text-to-speech.php+54
Methods with the same name as their class will not be constructors in a future version of PHP; TextToSpeechWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=text-to-speech/text-to-speech.php
- > Warning in wp-content/plugins/text-to-speech/text-to-speech.php+13
Use of undefined constant TTS_TEXTDOMAIN - assumed 'TTS_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=text-to-speech/text-to-speech.php
- > Notice in wp-content/plugins/text-to-speech/text-to-speech.php+237
Undefined index: submit
SRP 50% 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-to-speech/text-to-speech.php:21
- > PHP Warning
Use of undefined constant TTS_TEXTDOMAIN - assumed 'TTS_TEXTDOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/text-to-speech/text-to-speech.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
7 plugin tags: espeak, widget, text, text-to-speech, speak...
text-to-speech/text-to-speech.php Passed 13 tests
The entry point to "Text to Speech" version 1.0 is a PHP file that has certain tags in its header comment area
54 characters long description:
Javascript tool for transforming the text into speech.
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
No dangerous file extensions were detected5,420 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 12 | 4 | 5,061 |
PHP | 1 | 86 | 30 | 299 |
PO File | 1 | 23 | 36 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected