84% wp-force-http

Code Review | WordPress Force HTTP

WordPress plugin WordPress Force HTTP scored 84% from 54 tests.

About plugin

  • Plugin page: wp-force-http
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: May 18, 2014
  • Latest release: Oct 11, 2018
  • Number of updates: 11
  • Update frequency: every 146.1 days
  • Top authors: phikai (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active / 19,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.72ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Force HTTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.72 ▼3.90
Dashboard /wp-admin3.31 ▲0.0144.19 ▼9.27
Posts /wp-admin/edit.php3.36 ▲0.0146.36 ▼1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.18 ▼7.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.84 ▲0.55

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Force HTTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.041.90 ▲0.1239.20 ▼5.71
Dashboard /wp-admin2,209 ▲215.92 ▲1.0499.42 ▼17.4540.49 ▼4.57
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0640.26 ▲2.8135.13 ▲0.15
Add New Post /wp-admin/post-new.php1,537 ▲923.36 ▲0.50586.40 ▼73.2454.57 ▲2.97
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0898.34 ▼0.5846.87 ▲1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-force-http/wordpress-force-http.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-force-http === )
The official readme.txt is a good inspiration

wp-force-http/wordpress-force-http.php 92% from 13 tests

The main PHP script in "WordPress Force HTTP" version 0.1.5 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-force-http.php" instead of "wordpress-force-http.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12813

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.80
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin