58% inspect-http-requests

Code Review | Inspect HTTP Requests

WordPress plugin Inspect HTTP Requests scored58%from 54 tests.

About plugin

  • Plugin page: inspect-http-requ...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2022
  • Latest release: Sep 15, 2023
  • Number of updates: 13
  • Update frequency: every 36.1 days
  • Top authors: expresstechsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,448 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.35ms] Passed 4 tests

An overview of server-side resources used by Inspect HTTP Requests
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.12 ▼0.11
Dashboard /wp-admin3.42 ▲0.1244.40 ▼4.12
Posts /wp-admin/edit.php3.54 ▲0.1848.77 ▼4.13
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.49 ▼1.03
Media Library /wp-admin/upload.php3.35 ▲0.1137.42 ▲1.40
Inspect HTTP Request /wp-admin/tools.php?page=inspect-http-requests3.3233.08

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables
wp_ets_wp_outbound_http_requests
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Inspect HTTP Requests
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.35 ▼0.851.78 ▲0.0651.02 ▲9.80
Dashboard /wp-admin2,217 ▲295.85 ▲0.99106.85 ▲4.5845.06 ▼2.41
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0338.80 ▼4.1034.47 ▼3.89
Add New Post /wp-admin/post-new.php1,524 ▼922.94 ▼0.55644.52 ▼37.2748.44 ▼5.14
Media Library /wp-admin/upload.php1,402 ▲144.20 ▼0.0296.25 ▼4.3643.35 ▼4.52
Inspect HTTP Request /wp-admin/tools.php?page=inspect-http-requests9052.0828.1534.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/inspect-http-requests/uninstall.php+13
    Undefined index: plugin
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ets_wp_outbound_http_requests
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/inspect-http-requests/public/partials/inspect-http-requests-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/inspect-http-requests/admin/partials/inspect-http-requests-admin-display.php:17

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 97% 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === inspect-http-requests === )
You can take inspiration from this readme.txt

inspect-http-requests/inspect-http-requests.php Passed 13 tests

"Inspect HTTP Requests" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
139 characters long description:
Monitor all the HTTP Request being made via WP HTTP Methods i.e. wp_remote_get, wp_remote_post Block any request by just a click of button.

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
Good job! No executable or dangerous file extensions detected800 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15171524563
JavaScript21455125
CSS2129112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods36
▷ Static methods513.89%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/ravisoni.png278.09KB110.22KB▼ 60.36%