Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲5.06ms] Passed 4 tests
An overview of server-side resources used by WP Server Health Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.15 ▲5.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 163.32 ▲119.32 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 58.82 ▲12.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.52 ▲1.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.58 ▲1.55 |
Database Information /wp-admin/admin.php?page=wpss_sql_info | 3.86 | 48.62 |
PHP Information /wp-admin/admin.php?page=wpss_php_info | 3.51 | 43.04 |
General Settings /wp-admin/admin.php?page=wp_server_stats | 3.31 | 32.15 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wpss_db_advanced_info |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Server Health Stats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,222 ▲476 | 13.73 ▼0.65 | 2.00 ▲0.43 | 43.67 ▲1.42 |
Dashboard /wp-admin | 2,924 ▲733 | 5.64 ▲0.78 | 117.89 ▲15.78 | 62.04 ▲19.86 |
Posts /wp-admin/edit.php | 2,450 ▲361 | 2.42 ▲0.41 | 51.40 ▲11.67 | 38.14 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,873 ▲352 | 17.67 ▼5.81 | 699.75 ▲89.57 | 40.20 ▼8.75 |
Media Library /wp-admin/upload.php | 1,737 ▲352 | 4.65 ▲0.42 | 108.33 ▼4.73 | 44.44 ▼4.04 |
Database Information /wp-admin/admin.php?page=wpss_sql_info | 4,468 | 2.15 | 48.90 | 56.03 |
PHP Information /wp-admin/admin.php?page=wpss_php_info | 6,616 | 2.68 | 51.11 | 81.41 |
General Settings /wp-admin/admin.php?page=wp_server_stats | 1,947 | 4.52 | 133.00 | 38.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-server-stats/wp-server-stats.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp_server_stats
- > Network (severe)
https://api.razorpay.com/v1/payment_buttons/pl_FXG3hGY91IY5Rk/button_preferences - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: admin, widget, health, dashboard, server...
wp-server-stats/wp-server-stats.php Passed 13 tests
"WP Server Health Stats" version 1.7.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
Show up the memory limit and current memory usage in the dashboard and admin footer
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 plugin3,113 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 661 | 902 | 1,386 |
PHP | 3 | 184 | 120 | 1,321 |
CSS | 4 | 85 | 15 | 406 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 122.00 |
▷ Minimum class complexity | 122.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 56 | |
▷ Static methods | 1 | 1.79% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin