Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼35.13ms] Passed 4 tests
An overview of server-side resources used by SpeakStaff Audio Player
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.22 ▲6.44 |
Dashboard /wp-admin | 3.03 ▼0.27 | 23.22 ▼25.46 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 23.38 ▼24.12 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 22.00 ▼76.15 |
Media Library /wp-admin/upload.php | 3.03 ▼0.19 | 22.14 ▼14.79 |
Speakstaff /wp-admin/options-general.php?page=speakstaff-player/pages/admin_menu.php | 3.04 | 23.51 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SpeakStaff Audio Player
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 13.79 ▼0.85 | 2.17 ▲0.03 | 43.45 ▲4.51 |
Dashboard /wp-admin | 2,237 ▲46 | 5.17 ▼0.72 | 101.68 ▼0.07 | 39.38 ▼1.40 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.45 ▲0.41 | 36.43 ▲1.67 | 33.80 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 23.56 ▲5.41 | 676.52 ▲22.17 | 36.97 ▼20.67 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.45 ▲0.14 | 105.25 ▼6.62 | 45.58 ▼2.65 |
Speakstaff /wp-admin/options-general.php?page=speakstaff-player/pages/admin_menu.php | 938 | 2.39 | 45.94 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=speakstaff-player/pages/admin_menu.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/speakstaff-player/meta/meta-box.php
- > /wp-content/plugins/speakstaff-player/speakstaff-player.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/speakstaff-player/pages/admin_menu.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The new SpeakStaff Player Button.), #2 (This is the place where you paste your SpeakStaff Player ID. After you've selected a narrator and the spoken version of your text is finished, you'll receive the ID.), #3 (The output in the frontend of your blog.)
speakstaff-player/speakstaff-player.php 92% from 13 tests
"SpeakStaff Audio Player" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin540 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 53 | 291 |
PO File | 1 | 35 | 77 | 89 |
JavaScript | 3 | 6 | 11 | 88 |
CSS | 2 | 1 | 1 | 72 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 15 | |
▷ Named functions | 15 | 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
6 PNG files occupy 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 34.72KB | 14.42KB | ▼ 58.46% |
screenshot-3.png | 269.94KB | 99.89KB | ▼ 62.99% |
screenshot-2.png | 96.97KB | 36.44KB | ▼ 62.42% |
assets/speakstaff-shortcode-icon-colored.png | 2.70KB | 1.74KB | ▼ 35.60% |
assets/speakstaff-loader-logo.png | 3.74KB | 3.25KB | ▼ 13.17% |