Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼3.52ms] Passed 4 tests
Analyzing server-side resources used by Spoken Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 34.66 ▼3.37 |
Dashboard /wp-admin | 3.58 ▲0.27 | 44.67 ▼6.26 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.43 ▲7.92 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 87.63 ▼11.63 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.30 ▲7.18 |
Spoken Search /wp-admin/tools.php?page=SS2T_Settings | 3.40 | 29.57 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_ss2t_widget |
SS2T |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Spoken Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.46 ▲0.20 | 2.43 ▲0.75 | 41.07 ▼1.81 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.98 | 97.75 ▼24.05 | 40.68 ▼6.56 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.05 ▼0.03 | 40.13 ▲4.47 | 36.62 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.12 ▲4.91 | 675.78 ▲27.23 | 67.14 ▲17.08 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.34 ▲0.19 | 94.14 ▼5.49 | 40.90 ▼4.91 |
Spoken Search /wp-admin/tools.php?page=SS2T_Settings | 1,219 | 2.05 | 25.12 | 44.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- SS2T
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_ss2t_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/spoken-search/spoken-search.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: speech search, speech to text, voice search, mobile voice search, voice to text...
spoken-search/spoken-search.php 92% from 13 tests
This is the main PHP file of "Spoken Search" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,631 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 257 | 88 | 1,206 |
CSS | 4 | 4 | 12 | 423 |
JavaScript | 1 | 0 | 6 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 65.28% |
▷ Protected methods | 25 | 34.72% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 20 | |
▷ Global constants | 10 | 50.00% |
▷ Class constants | 10 | 50.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ss2t-search-light_medium.png | 4.80KB | 2.44KB | ▼ 49.25% |
assets/img/ss2t-search-dark_medium.png | 4.65KB | 2.06KB | ▼ 55.81% |
assets/img/ss2t-microphone-for-light.png | 23.74KB | 3.63KB | ▼ 84.70% |
assets/img/ss2t-microphone.png | 8.05KB | 3.25KB | ▼ 59.56% |
assets/img/ss2t-search-light_small.png | 2.04KB | 0.92KB | ▼ 54.62% |