Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/internet-connection-test/speed_test.php+43
Methods with the same name as their class will not be constructors in a future version of PHP; SpeedTestWidget has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests
This is a short check of server-side resources used by Internet Connection Test
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 41.41 ▲4.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.23 ▼2.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.84 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.11 ▼23.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.08 ▲5.70 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_speedtestwidget |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Internet Connection Test: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.99 ▼0.48 | 6.07 ▲4.17 | 44.52 ▲2.39 |
Dashboard /wp-admin | 2,203 ▲11 | 5.90 ▲0.96 | 106.37 ▼5.10 | 38.51 ▼2.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 34.64 ▼5.01 | 34.67 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.18 ▼0.13 | 682.47 ▲4.47 | 58.74 ▲8.79 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.18 ▼0.02 | 97.77 ▼16.08 | 42.60 ▼5.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_speedtestwidget
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% from 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/internet-connection-test/spt-widget.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: lbl_your_speed in wp-content/plugins/internet-connection-test/spt-widget.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/internet-connection-test/speed_test-setup.php:10
- > PHP Notice
Undefined variable: lbl_calculating in wp-content/plugins/internet-connection-test/spt-widget.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/internet-connection-test/speed_test-setup.php:10
- > PHP Notice
Undefined variable: lbl_start in wp-content/plugins/internet-connection-test/spt-widget.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, speed test, internet test
internet-connection-test/speed_test.php 92% from 13 tests
"Internet Connection Test" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("internet-connection-test.php" instead of "speed_test.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin270 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 29 | 94 |
CSS | 1 | 12 | 1 | 89 |
JavaScript | 2 | 8 | 0 | 87 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cancel.png | 2.22KB | 1.16KB | ▼ 47.84% |
retry.png | 1.63KB | 0.65KB | ▼ 59.92% |