100% pryc-wp-force-protocol-relative-to-uploaded-media

Code Review | PRyC WP: Force protocol relative to uploaded media

WordPress plugin PRyC WP: Force protocol relative to uploaded media scored 100% from 54 tests.

About plugin

  • Plugin page: pryc-wp-force-pro...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Jul 16, 2016
  • Latest release: Mar 15, 2021
  • Number of updates: 9
  • Update frequency: every 191.0 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 695 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by PRyC WP: Force protocol relative to uploaded media
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.51 ▲14.47
Dashboard /wp-admin3.06 ▲0.0143.57 ▼2.79
Posts /wp-admin/edit.php3.11 ▼0.0144.78 ▼5.99
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.22 ▼555.10
Media Library /wp-admin/upload.php3.00 ▲0.0031.97 ▲1.01

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by PRyC WP: Force protocol relative to uploaded media
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6616.13 ▲0.269.63 ▲1.5246.05 ▼1.78
Dashboard /wp-admin2,970 ▲395.84 ▼0.31140.81 ▼12.53110.27 ▼5.24
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0163.45 ▼7.3980.16 ▼10.23
Add New Post /wp-admin/post-new.php1,500 ▼018.56 ▲0.14372.37 ▲18.95100.77 ▼2.54
Media Library /wp-admin/upload.php1,807 ▼35.04 ▲0.04149.32 ▲3.49113.71 ▼4.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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: ssl, wordpress, http, https, url

pryc-wp-force-protocol-relative-to-uploaded-media/pryc-wp-force-protocol-relative-to-uploaded-media.php Passed 13 tests

"PRyC WP: Force protocol relative to uploaded media" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
Force protocol relative (\\ instead http:\\ or https:\\) for files added in the content editor (eg. post, page)

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
There were no executable files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112239

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected