Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.21ms] Passed 4 tests
Analyzing server-side resources used by Swifty Bar, sticky bar by WPGens
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 1,011.88 ▲963.09 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.51 ▼7.50 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.80 ▼1.70 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 99.43 ▲0.74 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.79 ▼0.39 |
Swifty Bar /wp-admin/options-general.php?page=sb_bar | 3.42 | 45.18 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Swifty Bar, sticky bar by WPGens
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲133 | 13.37 ▼0.99 | 10.16 ▲8.37 | 45.36 ▼0.47 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.08 | 91.42 ▲2.03 | 43.23 ▲2.48 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.03 | 40.82 ▲6.12 | 36.29 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.12 | 637.91 ▼57.78 | 53.03 ▼3.29 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.11 | 100.14 ▼15.86 | 47.85 ▲0.28 |
Swifty Bar /wp-admin/options-general.php?page=sb_bar | 1,206 | 2.27 | 41.68 | 27.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'sb_bar_Admin' not found in wp-content/plugins/swifty-bar/admin/settings/class-sb-bar-enable-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_query() in wp-content/plugins/swifty-bar/public/partials/sb-bar-public-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/swifty-bar/admin/partials/sb-bar-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'sb_bar_Admin' not found in wp-content/plugins/swifty-bar/admin/settings/class-sb-bar-settings.php:9
- > 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 94% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
swifty-bar/sb-bar.php 85% from 13 tests
Analyzing the main PHP file in "Swifty Bar, sticky bar by WPGens" version 1.2.11
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("swifty-bar.php" instead of "sb-bar.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 271 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,713 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 336 | 657 | 1,081 |
CSS | 2 | 24 | 16 | 455 |
JavaScript | 2 | 33 | 36 | 156 |
SVG | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 89.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.77% |
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