Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.85ms] Passed 4 tests
Analyzing server-side resources used by Internet Connection Alert!
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.05 ▲4.00 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.30 ▲0.10 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.72 ▼10.01 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.28 ▼1.47 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.45 ▲4.40 |
Internet Connection Status /wp-admin/options-general.php?page=internet-connection-status | 3.27 | 33.65 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Internet Connection Alert!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲50 | 14.32 ▼0.24 | 3.74 ▲1.63 | 37.74 ▼7.68 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.01 | 88.43 ▼9.36 | 40.87 ▼5.12 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.03 | 36.05 ▼0.90 | 35.95 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.72 ▲0.63 | 689.69 ▲25.17 | 56.47 ▲3.28 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.03 | 102.28 ▼8.15 | 46.52 ▲2.06 |
Internet Connection Status /wp-admin/options-general.php?page=internet-connection-status | 951 | 2.04 | 24.45 | 47.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/internet-connection-status/internet-connection-status.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: offline, alert, pwa
internet-connection-status/internet-connection-status.php Passed 13 tests
"Internet Connection Alert!" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Automatically alert your users when they've lost internet connectivity
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,882 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,030 |
CSS | 9 | 91 | 149 | 1,016 |
JavaScript | 5 | 24 | 18 | 557 |
PHP | 2 | 61 | 80 | 279 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 9.75KB | 3.76KB | ▼ 61.46% |