89% polaris-flexible-ssl

Code Review | Polaris Flexible SSL

WordPress plugin Polaris Flexible SSL scored89%from 54 tests.

About plugin

  • Plugin page: polaris-flexible-ssl
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 11, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: trungking (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Polaris Flexible SSL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.38 ▼11.59
Dashboard /wp-admin3.32 ▲0.0148.86 ▼2.86
Posts /wp-admin/edit.php3.37 ▲0.0151.66 ▼2.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.62 ▼14.49
Media Library /wp-admin/upload.php3.24 ▲0.0139.03 ▲0.97

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Polaris Flexible SSL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼0.972.25 ▲0.1043.26 ▲1.71
Dashboard /wp-admin2,206 ▲155.85 ▲0.04104.11 ▼5.9940.79 ▼1.77
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0441.14 ▲1.0434.80 ▼0.27
Add New Post /wp-admin/post-new.php1,535 ▼723.26 ▲4.94691.21 ▲32.8057.16 ▲2.80
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.02107.23 ▲2.1147.03 ▲4.85

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === polaris-flexible-ssl === )
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

polaris-flexible-ssl/plugin.php 92% from 13 tests

"Polaris Flexible SSL" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("polaris-flexible-ssl.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1203079

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods337.50%
▷ Protected methods00.00%
▷ Private methods562.50%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin