84% wp-ssl

Code Review | WordPress SSL

WordPress plugin WordPress SSL scored 84% from 54 tests.

About plugin

  • Plugin page: wp-ssl
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Nov 4, 2014
  • Number of updates: 3
  • Update frequency: every 193.4 days
  • Top authors: codix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.87ms] Passed 4 tests

A check of server-side resources used by WordPress SSL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.76 ▲0.69
Dashboard /wp-admin3.31 ▲0.0045.30 ▼22.89
Posts /wp-admin/edit.php3.36 ▲0.0051.69 ▲1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.67 ▼11.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.11 ▼1.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WordPress SSL: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.641.89 ▲0.0244.21 ▲0.18
Dashboard /wp-admin2,206 ▲185.90 ▲0.01108.23 ▼9.2540.08 ▼5.53
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0636.90 ▼4.9933.73 ▼3.21
Add New Post /wp-admin/post-new.php1,408 ▼11117.74 ▼5.31586.75 ▼95.6055.35 ▼1.76
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0899.63 ▼17.9643.56 ▼4.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/wp-ssl/wp-ssl.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: https, ssl, http

wp-ssl/wp-ssl.php Passed 13 tests

The entry point to "WordPress SSL" version 1.0.0 is a PHP file that has certain tags in its header comment area
58 characters long description:
Seamlessly map URLs to SSL if the site is accessed via SSL

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 plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19929

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected