Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.13ms] Passed 4 tests
A check of server-side resources used by Bonjour Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.70 ▼1.22 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.95 ▼5.78 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.50 ▲4.24 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.07 ▼9.51 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.57 ▲4.01 |
Bonjour Bar /wp-admin/options-general.php?page=bonjour | 3.43 | 31.61 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Bonjour Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲53 | 13.24 ▼1.12 | 1.56 ▼0.60 | 43.57 ▼5.80 |
Dashboard /wp-admin | 2,219 ▲31 | 4.99 ▲0.12 | 114.15 ▲12.92 | 39.83 ▼0.89 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.27 ▲0.27 | 42.31 ▲5.55 | 34.81 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,523 ▲3 | 23.06 ▼0.34 | 646.48 ▲38.77 | 62.53 ▲12.76 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.35 ▲0.19 | 98.76 ▲0.94 | 41.18 ▼2.03 |
Bonjour Bar /wp-admin/options-general.php?page=bonjour | 2,342 | 7.49 | 171.75 | 138.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 20 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bonjour
- > Notice in wp-content/plugins/bonjour/admin/partials/bonjour-admin-display.php+50
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bonjour/public/partials/bonjour-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bonjour/admin/partials/bonjour-admin-display.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=bonjour
- > Network (severe)
wp-content/plugins/bonjour/admin/https://fonts.googleapis.com/css?family=Playfair+Display%3A400%2C700&ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
- Screenshots: Screenshot #1 (Admin Panel) image missing
bonjour/bonjour.php Passed 13 tests
The main PHP file in "Bonjour Bar" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Eye catching Promotion And Notification WordPress Bar !
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,829 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 102 | 16 | 699 |
PHP | 12 | 275 | 575 | 685 |
JavaScript | 4 | 113 | 20 | 445 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 1.44MB with 1.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/exite-5.png | 16.94KB | 0.57KB | ▼ 96.64% |
admin/images/exite-6.png | 17.81KB | 1.65KB | ▼ 90.76% |
admin/images/grid/q-three-q.png | 17.81KB | 0.14KB | ▼ 99.23% |
admin/images/site.png | 225.10KB | 66.27KB | ▼ 70.56% |
admin/images/grid/icon.png | 17.85KB | 0.16KB | ▼ 99.10% |