Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/webspeechapi-for-wp/webspeechapi.php+41
Use of undefined constant wsapiwp_voice_btn_title_bottom - assumed 'wsapiwp_voice_btn_title_bottom' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.86ms] Passed 4 tests
Analyzing server-side resources used by WebSpeechAPI for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 3.90 ▼36.37 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.74 ▼44.10 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 7.59 ▼34.69 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.18 ▼96.26 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 4.95 ▼27.71 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WebSpeechAPI for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.18 | 4.51 ▲2.54 | 43.68 ▼0.81 |
Dashboard /wp-admin | 2,210 ▲25 | 4.88 ▼0.97 | 99.64 ▼1.51 | 36.20 ▼9.81 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.02 | 36.72 ▼2.49 | 32.01 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,518 ▼0 | 23.21 ▲0.16 | 577.24 ▼50.58 | 76.33 ▲16.55 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.21 ▼0.14 | 99.16 ▼10.22 | 41.01 ▼5.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/webspeechapi-for-wp/webspeechapi.php+41
Use of undefined constant wsapiwp_voice_btn_title_bottom - assumed 'wsapiwp_voice_btn_title_bottom' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 1× 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/webspeechapi-for-wp/webspeechapi.php:18
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
webspeechapi-for-wp/webspeechapi.php 92% from 13 tests
Analyzing the main PHP file in "WebSpeechAPI for WP" version 1.1
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("webspeechapi-for-wp.php" instead of "webspeechapi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin107 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 10 | 2 | 62 |
PHP | 1 | 6 | 12 | 24 |
CSS | 1 | 1 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected