84% redirection-https-for-apache

Code Review | Redirection HTTPS for Apache

WordPress plugin Redirection HTTPS for Apache scored84%from 54 tests.

About plugin

  • Plugin page: redirection-https...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: May 6, 2022
  • Number of updates: 9
  • Update frequency: every 76.4 days
  • Top authors: infranetworking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,950 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Redirection HTTPS for Apache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.88 ▼8.71
Dashboard /wp-admin3.31 ▲0.0043.28 ▼8.80
Posts /wp-admin/edit.php3.36 ▲0.0046.42 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.13 ▼18.30
Media Library /wp-admin/upload.php3.23 ▲0.0034.41 ▼0.72

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • There were 1 file (0.96KB) illegally modified outside of "wp-content/plugins/redirection-https-for-apache/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Redirection HTTPS for Apache: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.70 ▼1.051.59 ▼0.3944.50 ▼2.50
Dashboard /wp-admin2,206 ▲185.85 ▲0.98104.53 ▼13.3040.18 ▼7.80
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0039.69 ▲3.0935.88 ▼0.91
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.59664.69 ▲6.2945.72 ▼7.92
Media Library /wp-admin/upload.php1,388 ▲64.14 ▼0.0495.79 ▼2.2241.39 ▼1.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 17
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 14
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/misc.php): failed to open stream: No such file or directory in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php:79
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/misc.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/redirection-https-for-apache/redirection-https-for-apache.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: http https apache

redirection-https-for-apache/redirection-https-for-apache.php Passed 13 tests

This is the main PHP file of "Redirection HTTPS for Apache" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Plugin para crear redireccion de HTTP a HTTPS

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 detected48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181848

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin