Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.48ms] Passed 4 tests
Analyzing server-side resources used by SensorPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.72 ▼7.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.02 ▲1.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.22 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.88 ▲3.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.65 ▲3.22 |
SensorPress /wp-admin/options-general.php?page=sensorpress | 3.26 | 29.43 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SensorPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 14.08 ▼0.50 | 4.73 ▲2.79 | 38.39 ▼5.12 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲1.00 | 107.15 ▲2.04 | 40.76 ▼6.17 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.97 ▼0.06 | 39.30 ▼1.62 | 35.07 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.46 ▲0.93 | 636.21 ▼18.24 | 55.39 ▼2.97 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.01 | 98.63 ▼6.58 | 42.29 ▲1.12 |
SensorPress /wp-admin/options-general.php?page=sensorpress | 843 | 2.19 | 22.86 | 25.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=sensorpress
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=sensorpress
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=sensorpress
- > Notice in wp-content/plugins/sensorpress-uptime-monitoring/admin/views/admin.php+71
Undefined index: email
- > GET request to /wp-admin/options-general.php?page=sensorpress
- > Notice in wp-content/plugins/sensorpress-uptime-monitoring/admin/views/admin.php+77
Undefined index: site-key
- > GET request to /wp-admin/options-general.php?page=sensorpress
- > Notice in wp-content/plugins/sensorpress-uptime-monitoring/admin/views/admin.php+82
Undefined index: enable
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sensorpress-uptime-monitoring/public/views/public.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sensorpress-uptime-monitoring/admin/views/admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Quick Setup) image not found
sensorpress-uptime-monitoring/sensorpress-uptime-monitoring.php 92% from 13 tests
The main PHP script in "SensorPress" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin258 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 122 | 418 | 248 |
JavaScript | 2 | 8 | 2 | 10 |
CSS | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 7 | 28.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin