Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼34.02ms] Passed 4 tests
Analyzing server-side resources used by Top Bar Toggle
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.29 ▼3.84 |
Dashboard /wp-admin | 3.02 ▼0.29 | 23.72 ▼30.83 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 26.98 ▼19.40 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 24.80 ▼71.85 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 22.64 ▼13.99 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Top Bar Toggle
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.28 ▼0.07 | 2.95 ▲1.00 | 38.89 ▼10.06 |
Dashboard /wp-admin | 2,214 ▲34 | 5.63 ▼0.04 | 84.05 ▼11.68 | 39.85 ▼4.42 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.96 ▲0.00 | 33.18 ▼8.04 | 33.04 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.51 ▲0.39 | 683.12 ▼13.73 | 63.01 ▲0.55 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.25 ▲0.08 | 95.59 ▼15.51 | 43.59 ▼6.38 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/info-toggle/toggle.php+28
Use of undefined constant info_toggle_settings - assumed 'info_toggle_settings' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/info-toggle/toggle.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Stable tag: Not defined
info-toggle/toggle.php 92% from 13 tests
The main PHP script in "Top Bar Toggle" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("info-toggle.php" instead of "toggle.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected630 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 80 | 53 | 440 |
PHP | 1 | 8 | 8 | 147 |
CSS | 2 | 0 | 0 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.58MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 132.32KB | 93.44KB | ▼ 29.38% |
desktop.png | 16.01KB | 8.77KB | ▼ 45.25% |
screenshot-3.png | 44.78KB | 13.92KB | ▼ 68.91% |
assets/banner-772x250.png | 132.32KB | 93.44KB | ▼ 29.38% |
assets/desktop.png | 16.01KB | 8.77KB | ▼ 45.25% |