Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.04ms] Passed 4 tests
An overview of server-side resources used by Storefront Top Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.67 ▼5.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.10 ▼0.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.40 ▲3.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.44 ▼2.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.09 ▲1.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
storefront-top-bar-version |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Storefront Top Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.45 ▲0.08 | 1.68 ▼0.32 | 40.62 ▼9.44 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.98 | 98.21 ▼21.32 | 40.66 ▼4.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 41.01 ▲0.34 | 35.45 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.25 ▲0.25 | 648.05 ▼49.06 | 53.65 ▼3.76 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.02 | 96.89 ▼5.84 | 42.79 ▼1.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- storefront-top-bar-version
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: logo, storefront, customizer, widgets, top bar...
storefront-top-bar/storefront-top-bar.php 92% from 13 tests
"Storefront Top Bar" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "4.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin405 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 158 | 288 |
CSS | 1 | 1 | 0 | 117 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected