84% advanced-https-redirection

Code Review | Advanced Https Redirection

WordPress plugin Advanced Https Redirection scored 84% from 54 tests.

About plugin

  • Plugin page: advanced-https-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 5.9.2
  • First release: Feb 23, 2018
  • Latest release: Mar 28, 2018
  • Number of updates: 4
  • Update frequency: every 8.2 days
  • Top authors: ehabsan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 482 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼304.82ms] Passed 4 tests

An overview of server-side resources used by Advanced Https Redirection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▼0.0246.56 ▼14.82
Dashboard /wp-admin3.49 ▲0.0862.52 ▲28.39
Posts /wp-admin/edit.php3.71 ▲0.0742.15 ▲2.11
Add New Post /wp-admin/post-new.php6.11 ▼0.8679.62 ▼1,179.80
Media Library /wp-admin/upload.php3.37 ▲0.0825.35 ▼26.78
Advanced Https Redirect /wp-admin/options-general.php?page=advanced-https-redirection3.3228.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options
ahr-random-anchor-number

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Https Redirection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.13 ▲0.126.28 ▼0.642.71 ▼0.22
Dashboard /wp-admin2,897 ▲366.16 ▼0.03129.51 ▼7.05172.58 ▼74.28
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0262.33 ▼2.39137.94 ▼10.17
Add New Post /wp-admin/post-new.php1,694 ▼5817.94 ▼3.55443.94 ▼9.71202.02 ▲43.77
Media Library /wp-admin/upload.php1,697 ▲25.56 ▲0.09146.14 ▼13.12231.97 ▲30.43
Advanced Https Redirect /wp-admin/options-general.php?page=advanced-https-redirection9722.4352.5997.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • ahr-random-anchor-number

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=advanced-https-redirection
    • > Warning in wp-content/plugins/advanced-https-redirection/admin/index.php+471
    include(/templates/options-page.tpl): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=advanced-https-redirection
    • > Warning in wp-content/plugins/advanced-https-redirection/admin/index.php+471
    include(): Failed opening '/templates/options-page.tpl' for inclusion (include_path='.:/usr/share/php')

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% 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
5 plugin tags: https, ssl, redirection, automatic redirection, htaccess

advanced-https-redirection/advanced-https-redirection.php 92% from 13 tests

The main PHP file in "Advanced Https Redirection" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected494 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3221262332
CSS1170102
JavaScript217660

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/question-mark.png0.38KB0.13KB▼ 65.63%