Benchmarks
Plugin footprint 83% 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.18MB] [CPU: ▼15.31ms] Passed 4 tests
An overview of server-side resources used by Force SSL Switcher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 27.73 ▼14.71 |
Dashboard /wp-admin | 3.13 ▼0.18 | 40.26 ▼11.90 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 52.58 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.47 | 72.01 ▼21.16 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 29.47 ▼13.45 |
General /wp-admin/admin.php?page=wps-general | 3.27 | 33.85 |
Support /wp-admin/admin.php?page=wps-support | 3.26 | 33.82 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Force SSL Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.29 ▼1.08 | 1.52 ▼0.54 | 43.49 ▼1.94 |
Dashboard /wp-admin | 2,233 ▲42 | 4.87 ▼1.04 | 113.70 ▲12.81 | 38.81 ▼5.93 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.05 ▲0.04 | 39.90 ▼2.51 | 35.06 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.32 ▲4.92 | 651.31 ▼4.02 | 55.51 ▼6.02 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.23 ▼0.01 | 96.92 ▼8.04 | 43.99 ▲0.11 |
General /wp-admin/admin.php?page=wps-general | 890 | 2.06 | 27.31 | 28.44 |
Support /wp-admin/admin.php?page=wps-support | 820 | 2.06 | 24.67 | 28.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 60 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps-support
- > Notice in wp-content/plugins/forcesslswitcher/include/fix-resource-hooks.php+14
Trying to access array offset on value of type bool
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/forcesslswitcher/include/main-class.php
- > /wp-content/plugins/forcesslswitcher/main.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/forcesslswitcher/include/templates/settings_general.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/forcesslswitcher/include/templates/settings_support.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
6 plugin tags: ssl migration, 443, ssl, redirect, https...
forcesslswitcher/main.php 85% from 13 tests
The main file in "Force SSL Switcher" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("forcesslswitcher.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin319 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 33 | 35 | 252 |
PO File | 1 | 21 | 22 | 67 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin