Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.51ms] Passed 4 tests
Server-side resources used by Dashboard Beacon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.33 ▼3.75 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.47 ▼1.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.55 ▲6.75 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.28 ▼6.50 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.45 ▲6.12 |
Dashboard Beacon /wp-admin/tools.php?page=dashboard_beacon | 3.24 | 33.24 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dashboard Beacon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.17 ▼1.13 | 1.77 ▼0.23 | 45.06 ▼2.95 |
Dashboard /wp-admin | 2,215 ▲27 | 4.86 ▼1.02 | 105.91 ▼9.16 | 42.88 ▲1.11 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.04 | 39.35 ▲3.24 | 36.06 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.04 ▲5.61 | 631.84 ▼10.69 | 60.56 ▼6.32 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.26 ▲0.10 | 94.85 ▼0.04 | 40.83 ▼0.87 |
Dashboard Beacon /wp-admin/tools.php?page=dashboard_beacon | 879 | 1.98 | 27.22 | 26.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-dashboard-beacon/public/partials/wp-dashboard-beacon-public-display.php
- > /wp-content/plugins/wp-dashboard-beacon/admin/partials/wp-dashboard-beacon-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-dashboard-beacon ===
)
wp-dashboard-beacon/wp-dashboard-beacon.php Passed 13 tests
The main PHP file in "Dashboard Beacon" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Easily integrate a Helpscout Beacon in your dashboard or website.
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
Good job! No executable or dangerous file extensions detected754 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 148 | 560 | 521 |
PO File | 1 | 57 | 78 | 142 |
JavaScript | 4 | 8 | 55 | 91 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-128x128.png | 7.66KB | 3.59KB | ▼ 53.12% |
screenshot-1.png | 98.62KB | 27.46KB | ▼ 72.15% |
icon-256x256.png | 14.88KB | 7.77KB | ▼ 47.77% |
banner-772x250.png | 39.96KB | 15.83KB | ▼ 60.39% |