Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.90ms] Passed 4 tests
A check of server-side resources used by Log HTTP Requests
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.29 ▼0.07 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.95 ▼11.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.60 ▼6.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.99 ▼17.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.07 ▲3.99 |
Log HTTP Requests /wp-admin/tools.php?page=log-http-requests | 3.24 | 29.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_lhr_log |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
lhr_version |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Log HTTP Requests
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.24 ▼1.19 | 4.45 ▲2.53 | 42.77 ▲4.58 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▼0.02 | 110.17 ▲10.76 | 41.17 ▼2.44 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 36.79 ▲0.45 | 32.85 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.35 ▲0.17 | 605.92 ▼1.09 | 58.23 ▲1.76 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.19 ▲0.03 | 97.95 ▼1.45 | 42.15 ▲0.27 |
Log HTTP Requests /wp-admin/tools.php?page=log-http-requests | 869 | 2.11 | 30.45 | 26.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_lhr_log
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- lhr_version
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/log-http-requests/templates/page-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp_http, api, log, update checks, requests
log-http-requests/log-http-requests.php Passed 13 tests
"Log HTTP Requests" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Log all those pesky WP HTTP requests
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
There were no executable files found in this plugin496 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 22 | 309 |
JavaScript | 1 | 19 | 6 | 98 |
CSS | 1 | 26 | 4 | 89 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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