94% http-urls

Code Review | HTTP URLs

WordPress plugin HTTP URLs scored 94% from 54 tests.

About plugin

  • Plugin page: http-urls
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 5.8.1
  • First release: May 12, 2014
  • Latest release: May 12, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: McGuive7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,540 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼144.50ms] Passed 4 tests

An overview of server-side resources used by HTTP URLs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0144.98 ▲1.90
Dashboard /wp-admin3.06 ▲0.0147.51 ▼5.22
Posts /wp-admin/edit.php3.12 ▲0.0153.60 ▼1.43
Add New Post /wp-admin/post-new.php5.42 ▼0.01102.68 ▼569.34
Media Library /wp-admin/upload.php3.01 ▲0.0136.51 ▼2.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by HTTP URLs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲11915.87 ▲0.3310.76 ▲1.0150.01 ▼4.74
Dashboard /wp-admin2,967 ▲365.93 ▼0.09161.67 ▲6.67112.29 ▼8.18
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0173.87 ▼1.7697.98 ▲3.49
Add New Post /wp-admin/post-new.php1,615 ▼6821.52 ▲3.05328.69 ▼166.27112.50 ▼7.80
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.00175.59 ▲4.26122.32 ▼2.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/http-urls/http_urls.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: url, change, https, protocol, address...

http-urls/http_urls.php 85% from 13 tests

The primary PHP file in "HTTP URLs" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("http-urls.php" instead of "http_urls.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103520

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin