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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.94ms] Passed 4 tests
A check of server-side resources used by Voice Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.42 ▼4.14 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.58 ▼0.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.72 ▲1.90 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 89.93 ▼16.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.03 ▲1.80 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Voice Blocks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲169 | 14.97 ▲0.60 | 28.29 ▲26.10 | 44.70 ▼6.86 |
Dashboard /wp-admin | 2,220 ▲35 | 4.83 ▼0.07 | 109.67 ▼7.05 | 41.34 ▼6.37 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.03 ▼0.00 | 36.25 ▲1.46 | 33.70 ▼4.39 |
Add New Post /wp-admin/post-new.php | 6,436 ▲4,901 | 20.88 ▼2.29 | 952.50 ▲327.99 | 40.88 ▼12.72 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.25 ▲0.00 | 95.04 ▼7.67 | 44.05 ▼4.19 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/blocks/voice.php:73
- > PHP Warning
require_once(ABSPATHwp-admin/includes/dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/voice/includes/dashboard.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/dashboard.php' (include_path='.:/usr/share/php') in wp-content/plugins/voice/includes/dashboard.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/includes/class-admin-menu.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function Voice\\add_action() in wp-content/plugins/voice/includes/class-admin-menu.php:70
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/voice/includes/dashboard.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: blocks, audio, block, tts, text-to-speech...
voice/voice.php 92% from 13 tests
The main file in "Voice Blocks" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 212 characters long)
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
Everything looks great! No dangerous files found in this plugin276 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 58 | 166 | 271 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/voice-logo-96.png | 20.50KB | 5.47KB | ▼ 73.30% |
img/voice-logo-128.png | 25.33KB | 6.54KB | ▼ 74.19% |
img/voice-logo-64.png | 13.69KB | 3.77KB | ▼ 72.48% |