Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▲0.19ms] 75% from 4 tests
Analyzing server-side resources used by Toolbar Links
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,632.87ms on /wp-admin/options-general.php?page=tl-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.16 ▼5.90 |
Dashboard /wp-admin | 3.48 ▲0.18 | 52.45 ▲1.40 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 56.42 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 100.84 ▲2.90 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.85 ▲5.37 |
Toolbar Links /wp-admin/options-general.php?page=tl-settings | 3.37 | 1,632.87 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Toolbar Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲300 | 13.57 ▼0.94 | 2.43 ▲0.35 | 45.40 ▼1.54 |
Dashboard /wp-admin | 2,344 ▲162 | 5.89 ▼0.13 | 109.64 ▲6.23 | 38.91 ▼4.86 |
Posts /wp-admin/edit.php | 2,233 ▲147 | 2.08 ▲0.08 | 43.49 ▲7.14 | 35.88 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,638 ▲119 | 23.16 ▼0.18 | 659.05 ▲28.30 | 57.62 ▲4.80 |
Media Library /wp-admin/upload.php | 1,529 ▲144 | 4.16 ▼0.04 | 116.66 ▲13.44 | 47.93 ▲3.15 |
Toolbar Links /wp-admin/options-general.php?page=tl-settings | 1,136 | 1.77 | 28.93 | 31.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/publish-post.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/wp-admin-menu.php:282
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/toolbar-off.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/delete-post.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/disable-wp-logo.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/disable-wp-logo.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-links/includes/admin-menu.php:392
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Toolbar links), #2 (Plugin settings page)
toolbar-links/toolbar-links.php 92% from 13 tests
Analyzing the main PHP file in "Toolbar Links" version 1.4
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,522 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 179 | 45 | 946 |
CSS | 4 | 20 | 5 | 540 |
JavaScript | 2 | 0 | 7 | 36 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/2.png | 28.96KB | 10.56KB | ▼ 63.54% |
includes/images/pluginsclub_logo_black.png | 22.36KB | 10.65KB | ▼ 52.36% |
includes/images/6.png | 28.11KB | 9.96KB | ▼ 64.57% |
includes/images/1.png | 28.88KB | 10.17KB | ▼ 64.80% |
includes/images/5.png | 29.19KB | 10.35KB | ▼ 64.54% |