83% simple-https

Code Review | Simple HTTPS

WordPress plugin Simple HTTPS scored83%from 54 tests.

About plugin

  • Plugin page: simple-https
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2022
  • Latest release: Sep 8, 2023
  • Number of updates: 74
  • Update frequency: every 4.1 days
  • Top authors: neoslab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.36ms] Passed 4 tests

This is a short check of server-side resources used by Simple HTTPS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.50 ▲4.73
Dashboard /wp-admin3.36 ▲0.0244.48 ▼14.16
Posts /wp-admin/edit.php3.47 ▲0.1249.82 ▲1.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0681.34 ▼13.84
Media Library /wp-admin/upload.php3.28 ▲0.0634.68 ▲1.49
Simple HTTPS /wp-admin/options-general.php?page=simple-https-admin3.2736.50

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
_simple_https
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple HTTPS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.134.75 ▲2.9944.20 ▲5.25
Dashboard /wp-admin2,210 ▲194.85 ▼1.05106.58 ▲1.5839.15 ▼1.99
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0139.65 ▼0.7334.49 ▼0.09
Add New Post /wp-admin/post-new.php1,536 ▲1723.40 ▲0.25680.09 ▲18.1557.51 ▲4.11
Media Library /wp-admin/upload.php1,395 ▲74.19 ▲0.0396.11 ▼9.4144.27 ▼4.40
Simple HTTPS /wp-admin/options-general.php?page=simple-https-admin8702.1622.4651.95

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-https/admin/partials/simple-https-admin-options.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (A general view of the plugin "options" page.)
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

simple-https/simple-https.php 92% from 13 tests

The main PHP file in "Simple HTTPS" ver. 2.2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,105 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS311844737
PHP1060362342
JavaScript21026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png64.94KB17.40KB▼ 73.21%