Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.79ms] Passed 4 tests
Analyzing server-side resources used by One Click SSL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.88 ▲0.59 |
Dashboard /wp-admin | 3.48 ▲0.13 | 60.48 ▼8.11 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 54.98 ▲7.53 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 93.91 ▼13.05 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.21 ▼2.57 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
ocssl |
widget_recent-posts |
can_compress_scripts |
ocssl_areas |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
ocssl_nonsslredirect |
ocssl_ratereview_scheduled |
Browser metrics Passed 4 tests
Checking browser requirements for One Click SSL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲52 | 14.24 ▼0.34 | 2.24 ▲0.16 | 43.99 ▼0.52 |
Dashboard /wp-admin | 2,244 ▲64 | 5.62 ▲0.05 | 86.13 ▼6.91 | 39.95 ▲0.50 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.06 ▲0.02 | 41.77 ▲5.49 | 37.51 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,563 ▲18 | 23.73 ▲0.18 | 658.26 ▼27.86 | 52.00 ▲1.57 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.27 ▲0.09 | 98.61 ▼12.39 | 46.39 ▲1.03 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 12 options in the database
- ocssl
- widget_theysaidso_widget
- can_compress_scripts
- ocssl_ratereview_scheduled
- ocssl_areas
- widget_recent-posts
- ocssl_dismissed-ssloff
- ocssl_dismissed-ratereview
- ocssl_nonsslredirect
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/one-click-ssl/views/settings.php
- > /wp-content/plugins/one-click-ssl/views/settings-network.php
- > /wp-content/plugins/one-click-ssl/views/settings-about.php
- > /wp-content/plugins/one-click-ssl/views/settings-submit.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-adminDSadmin.php' (include_path='.:/usr/share/php') in wp-content/plugins/one-click-ssl/views/setup.php on line 10
- > PHP Warning
require_once(ABSPATHwp-adminDSadmin.php): failed to open stream: No such file or directory in wp-content/plugins/one-click-ssl/views/setup.php on line 10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/one-click-ssl/views/settings-network-general.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/one-click-ssl/views/setup.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/one-click-ssl/views/settings-scanner.php:3
- > PHP Warning
Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in wp-content/plugins/one-click-ssl/views/setup.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/one-click-ssl/views/settings-status.php:59
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/one-click-ssl/views/settings-general.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: http, https, mixed-content, ssl, insecure content...
one-click-ssl/ssl.php 92% from 13 tests
"One Click SSL" version 1.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("one-click-ssl.php" instead of "ssl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,796 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 540 | 16 | 2,922 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 11 | 271 | 45 | 1,070 |
JavaScript | 2 | 23 | 15 | 133 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 111.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plugins/newsletters.png | 14.32KB | 6.31KB | ▼ 55.95% |