Benchmarks
Plugin footprint 40% 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/uptime-widget/uptime-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.28ms] Passed 4 tests
An overview of server-side resources used by Uptime Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.93 ▼40.27 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.91 ▼42.47 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.16 ▼48.37 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.61 ▼94.01 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.00 ▼31.84 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wp_my_plugin |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Uptime Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.37 ▲0.00 | 1.76 ▼0.46 | 44.30 ▼0.87 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▼0.04 | 87.21 ▼4.71 | 38.51 ▼6.13 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.03 | 40.42 ▼3.21 | 37.78 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.86 ▼5.33 | 701.30 ▲70.85 | 58.54 ▲10.77 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.02 | 96.77 ▼5.38 | 42.11 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/uptime-widget/uptime-widget.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_wp_my_plugin
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/uptime-widget/uptime-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Screenshot #1 (To be added shortly) image not found
uptime-widget/uptime-widget.php Passed 13 tests
The primary PHP file in "Uptime Widget" version 1.0 is used by WordPress to initiate all plugin functionality
120 characters long description:
A simple plugin that will display a gauge on your sidebar showing the uptime percentage of any website in the past month
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin59 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 21 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin