64% karlog-it-simple-ssl

Code Review | Karlog-IT Simple SSL

WordPress plugin Karlog-IT Simple SSL scored64%from 54 tests.

About plugin

  • Plugin page: karlog-it-simple-ssl
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 31, 2020
  • Latest release: Aug 31, 2020
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: vhgkarlogit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /433 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Karlog-IT Simple SSL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.09 ▲2.19
Dashboard /wp-admin3.32 ▲0.0148.73 ▼2.78
Posts /wp-admin/edit.php3.37 ▲0.0152.88 ▼1.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.87 ▼20.46
Media Library /wp-admin/upload.php3.24 ▲0.0137.72 ▲3.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Karlog-IT Simple SSL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.031.64 ▼0.5240.92 ▼1.81
Dashboard /wp-admin2,218 ▲385.56 ▼0.1986.42 ▼4.6238.96 ▼1.42
Posts /wp-admin/edit.php2,123 ▲202.02 ▲0.0538.46 ▼2.4635.73 ▼2.09
Add New Post /wp-admin/post-new.php1,546 ▲1123.12 ▲5.07677.00 ▲60.0855.58 ▼4.03
Media Library /wp-admin/upload.php1,426 ▲294.14 ▼0.02104.71 ▼0.8851.54 ▲7.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Error in wp-content/plugins/karlog-it-simple-ssl/helpers/Handler.php+5
    Cannot declare class HTTPS_Direct\Helpers\Handler, because the name is already in use
  • The plugin did not uninstall successfully, leaving 6 files (0.01MB) in the plugin directory
    • (new file) custom/script.js
    • (new file) helpers/Handler.php
    • (new file) uninstall.php
    • (new file) karlog-it-simple_ssl.php
    • (new file) readme.txt
    • (new file) custom/style.css
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HTTPS_Direct\\add_action() in wp-content/plugins/karlog-it-simple-ssl/karlog-it-simple_ssl.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ssl, http, https, simple ssl, redirect

karlog-it-simple-ssl/karlog-it-simple_ssl.php 92% from 13 tests

Analyzing the main PHP file in "Karlog-IT Simple SSL" version 1.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("karlog-it-simple-ssl.php" instead of "karlog-it-simple_ssl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin209 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32816171
JavaScript14020
CSS10018

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.28
Average class complexity8.50
▷ Minimum class complexity6.00
▷ Maximum class complexity11.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 images were found in this plugin