84% http-requests-manager

Code Review | HTTP Requests Manager

WordPress plugin HTTP Requests Manager scored84%from 54 tests.

About plugin

  • Plugin page: http-requests-man...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 7
  • Update frequency: every 25.7 days
  • Top authors: veppa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /784 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.31MB] [CPU: ▼1.87ms] Passed 4 tests

An overview of server-side resources used by HTTP Requests Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3539.00 ▼0.82
Dashboard /wp-admin3.65 ▲0.3547.62 ▼0.79
Posts /wp-admin/edit.php3.70 ▲0.3455.42 ▲6.28
Add New Post /wp-admin/post-new.php6.17 ▲0.2888.43 ▼12.14
Media Library /wp-admin/upload.php3.51 ▲0.2839.43 ▲6.37
HTTP Requests Manager /wp-admin/tools.php?page=http-requests-manager3.5536.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: 2 new tables, 6 new options
New tables
wp_vphrm_log
wp_vphrm_log_page
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for HTTP Requests Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.22 ▼0.541.70 ▲0.0841.81 ▼2.11
Dashboard /wp-admin2,199 ▲225.62 ▼0.0692.29 ▼6.9337.47 ▼2.35
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0735.15 ▼2.2030.08 ▼5.71
Add New Post /wp-admin/post-new.php1,529 ▼123.07 ▲0.10705.96 ▲74.9361.60 ▲7.60
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0196.42 ▼6.6140.56 ▼4.38
HTTP Requests Manager /wp-admin/tools.php?page=http-requests-manager1,4231.8843.9056.21

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/http-requests-manager/templates/page-settings.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: update checks, limit request count, block external requests, log, wp_http...

http-requests-manager/http-requests-manager.php 85% from 13 tests

The primary PHP file in "HTTP Requests Manager" version 1.2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,401 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25025732,105
JavaScript1170171989
CSS1439307

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity271.00
▷ Minimum class complexity271.00
▷ Maximum class complexity271.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods106
▷ Static methods5753.77%
▷ Public methods9892.45%
▷ Protected methods00.00%
▷ Private methods87.55%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin