Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲4.81MB] [CPU: ▲22.05ms] Passed 4 tests
A check of server-side resources used by WordPress Notification Bar Plugin - TinyBar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.16 | 67.55 ▲21.91 |
Dashboard /wp-admin | 8.92 ▲5.35 | 79.71 ▲21.54 |
Posts /wp-admin/edit.php | 8.92 ▲5.24 | 87.37 ▲34.12 |
Add New Post /wp-admin/post-new.php | 9.62 ▲3.47 | 114.53 ▲10.62 |
Media Library /wp-admin/upload.php | 8.92 ▲5.43 | 77.11 ▲39.67 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.92 | 66.39 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 225 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_accounts |
hmtb_display_type |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_active_plugins |
db_upgraded |
widget_recent-posts |
hmtb_display_option |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
WordPress Notification Bar Plugin - TinyBar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,120 ▲349 | 15.09 ▲0.89 | 7.35 ▲5.23 | 32.93 ▼12.11 |
Dashboard /wp-admin | 2,388 ▲211 | 6.40 ▲0.73 | 119.15 ▲15.82 | 44.90 ▲2.66 |
Posts /wp-admin/edit.php | 2,317 ▲217 | 3.52 ▲1.53 | 52.19 ▲15.49 | 36.65 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,720 ▲185 | 22.86 ▼0.50 | 727.28 ▲87.46 | 35.64 ▼21.47 |
Media Library /wp-admin/upload.php | 1,459 ▲56 | 4.36 ▲0.17 | 86.86 ▼18.36 | 48.31 ▼0.46 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,297 | 3.34 | 41.60 | 28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tiny-bar/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- fs_debug_mode
- fs_active_plugins
- can_compress_scripts
- theysaidso_admin_options
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: floating bar, notification bar, bottom bar, notification, top bar
tiny-bar/tiny-bar.php Passed 13 tests
Analyzing the main PHP file in "WordPress Notification Bar Plugin - TinyBar" version 2.2
139 characters long description:
TinyBar displays a notification bar to your website. You can place it top or bottom of your webpage. It overlaps and hides when you scroll.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected35,407 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,153 | 17,256 | 34,479 |
CSS | 17 | 81 | 12 | 483 |
JavaScript | 6 | 81 | 72 | 367 |
PO File | 1 | 31 | 33 | 78 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 80.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,293 | |
▷ Static methods | 197 | 15.24% |
▷ Public methods | 887 | 68.60% |
▷ Protected methods | 30 | 2.32% |
▷ Private methods | 376 | 29.08% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |