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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests
Server-side resources used by ReadAloud Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.88 ▼3.40 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.04 ▼2.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.40 ▼8.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.70 ▼16.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.34 ▼1.59 |
ReadAloud Widget /wp-admin/options-general.php?page=sitespeaker_settings_page | 3.20 | 32.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ReadAloud Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.42 | 1.74 ▼0.18 | 43.70 ▲0.13 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▼0.10 | 84.49 ▼9.32 | 37.45 ▼5.67 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.98 ▲0.01 | 33.70 ▼5.50 | 33.92 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.14 ▲0.11 | 670.80 ▲1.56 | 57.23 ▼8.02 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.03 | 102.32 ▼13.41 | 43.01 ▼5.71 |
ReadAloud Widget /wp-admin/options-general.php?page=sitespeaker_settings_page | 1,492 | 2.06 | 28.86 | 31.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sitespeaker_settings_page
- > Notice in wp-content/plugins/sitespeaker-widget/sitespeaker.php+79
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sitespeaker-widget/sitespeaker.php:96
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: speech, speechify, voice, text-to-speech, widget...
sitespeaker-widget/sitespeaker.php 92% from 13 tests
The primary PHP file in "ReadAloud Widget" version 1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sitespeaker-widget.php" instead of "sitespeaker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin197 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 6 | 0 | 100 |
PHP | 1 | 15 | 8 | 82 |
HTML | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin