74% log-http-requests

Code Review | Log HTTP Requests

WordPress plugin Log HTTP Requests scored74%from 54 tests.

About plugin

  • Plugin page: log-http-requests
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 17, 2023
  • Number of updates: 15
  • Update frequency: every 145.9 days
  • Top authors: mgibbs189 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /35,383 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.29 ▼0.07
Dashboard /wp-admin3.32 ▼0.0347.95 ▼11.21
Posts /wp-admin/edit.php3.37 ▲0.0141.60 ▼6.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.99 ▼17.96
Media Library /wp-admin/upload.php3.24 ▲0.0136.07 ▲3.99
Log HTTP Requests /wp-admin/tools.php?page=log-http-requests3.2429.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.24 ▼1.194.45 ▲2.5342.77 ▲4.58
Dashboard /wp-admin2,213 ▲224.86 ▼0.02110.17 ▲10.7641.17 ▼2.44
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0536.79 ▲0.4532.85 ▼1.44
Add New Post /wp-admin/post-new.php1,536 ▲323.35 ▲0.17605.92 ▼1.0958.23 ▲1.76
Media Library /wp-admin/upload.php1,395 ▲104.19 ▲0.0397.95 ▼1.4542.15 ▲0.27
Log HTTP Requests /wp-admin/tools.php?page=log-http-requests8692.1130.4526.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP48522309
JavaScript119698
CSS126489

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 code0.23
Average class complexity9.33
▷ Minimum class complexity3.00
▷ Maximum class complexity14.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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