Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▲8.44ms] Passed 4 tests
A check of server-side resources used by WP Free SSL - Free SSL Certificate for WordPress and force HTTPS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 52.88 ▲14.73 |
Dashboard /wp-admin | 3.91 ▲0.61 | 54.71 ▲11.41 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 54.42 ▲6.22 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 118.94 ▲20.25 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.80 ▲1.41 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.00 | 41.20 |
Server storage [IO: ▲6.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 440 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
fs_accounts |
db_upgraded |
fs_active_plugins |
wpssl_basedomainwww |
fs_debug_mode |
widget_theysaidso_widget |
can_compress_scripts |
wpssl_basedomain |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Free SSL - Free SSL Certificate for WordPress and force HTTPS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.23 ▲0.09 | 2.24 ▲0.30 | 41.92 ▼7.56 |
Dashboard /wp-admin | 2,236 ▲51 | 5.86 ▲0.01 | 126.63 ▼1.43 | 78.09 ▲29.42 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.01 ▼0.03 | 48.09 ▲6.75 | 60.68 ▲20.82 |
Add New Post /wp-admin/post-new.php | 1,686 ▲172 | 22.17 ▲0.51 | 689.39 ▼72.17 | 65.21 ▲4.81 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.21 ▲0.05 | 117.22 ▼22.78 | 85.22 ▲15.60 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,089 | 1.67 | 30.88 | 35.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-free-ssl/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- db_upgraded
- wpssl_basedomainwww
- wpssl_basedomain
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- fs_accounts
- widget_recent-posts
- ...
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-free-ssl/admin/pages/plans.php
- > /wp-content/plugins/wp-free-ssl/admin/pages/autoinstall.php
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Warning
require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/wp-free-ssl/lib/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'LEClient\\Exceptions\\LEException' not found in wp-content/plugins/wp-free-ssl/lib/classes/LEClient/Exceptions/LEConnectorException.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-free-ssl/admin/pages/enablehttps.php:4
- > PHP Fatal error
Cannot declare class DivisionByZeroError, because the name is already in use in wp-content/plugins/wp-free-ssl/lib/vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php on line 0
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-free-ssl/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Window), #2 (After activation), #3 (Before activation)
- Donate link: Invalid url: "- https://paypal.me/prasadkirpekar"
wp-free-ssl/wp-free-ssl.php 92% from 13 tests
This is the main PHP file of "WP Free SSL - Free SSL Certificate for WordPress and force HTTPS" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 75 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-free-ssl/cabundle/ca.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 297 | 10,979 | 24,908 | 64,858 |
Markdown | 27 | 1,697 | 0 | 5,014 |
JSON | 15 | 0 | 0 | 1,265 |
JavaScript | 5 | 161 | 70 | 658 |
XML | 3 | 0 | 0 | 50 |
make | 2 | 13 | 4 | 33 |
CSS | 15 | 0 | 0 | 17 |
Dockerfile | 1 | 8 | 0 | 10 |
YAML | 1 | 1 | 0 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
SVG | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 34.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 19 | |
Traits | 5 | |
Classes | 164 | |
▷ Abstract classes | 2 | 1.22% |
▷ Concrete classes | 162 | 98.78% |
▷ Final classes | 22 | 13.58% |
Methods | 2,176 | |
▷ Static methods | 389 | 17.88% |
▷ Public methods | 1,620 | 74.45% |
▷ Protected methods | 25 | 1.15% |
▷ Private methods | 531 | 24.40% |
Functions | 286 | |
▷ Named functions | 193 | 67.48% |
▷ Anonymous functions | 93 | 32.52% |
Constants | 362 | |
▷ Global constants | 144 | 39.78% |
▷ Class constants | 218 | 60.22% |
▷ Public constants | 218 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/assets/img/icon.png | 4.52KB | 0.41KB | ▼ 90.88% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/assets/img/ssl.png | 19.69KB | 3.38KB | ▼ 82.83% |