78% nertworks-site-wide-ssl

Code Review | NertWorks Site Wide SSL

WordPress plugin NertWorks Site Wide SSL scored78%from 54 tests.

About plugin

  • Plugin page: nertworks-site-wi...
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2014
  • Latest release: Jun 14, 2014
  • Number of updates: 13
  • Update frequency: every 12.3 days
  • Top authors: nertworks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.67ms] Passed 4 tests

A check of server-side resources used by NertWorks Site Wide SSL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.98 ▲2.38
Dashboard /wp-admin3.34 ▲0.0346.41 ▼1.91
Posts /wp-admin/edit.php3.39 ▲0.0346.13 ▲3.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.83 ▼1.48
Media Library /wp-admin/upload.php3.26 ▲0.0338.18 ▲6.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
nertworks_site_wide_ssl_redirect_type
theysaidso_admin_options
widget_recent-comments
db_upgraded
nertworks_site_wide_ssl_dashboard_enabled
nertworks_site_wide_ssl_website_enabled
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for NertWorks Site Wide SSL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.54 ▼0.831.61 ▼0.0737.14 ▼4.57
Dashboard /wp-admin2,224 ▲425.99 ▲0.12108.30 ▼0.2880.52 ▲35.31
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0438.49 ▲3.8034.26 ▼2.93
Add New Post /wp-admin/post-new.php1,527 ▼623.10 ▼0.15755.65 ▲114.9152.50 ▲4.17
Media Library /wp-admin/upload.php1,397 ▲64.21 ▲0.0098.98 ▼3.2173.45 ▲32.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • nertworks_site_wide_ssl_redirect_type
    • nertworks_site_wide_ssl_website_enabled
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • nertworks_site_wide_ssl_dashboard_enabled

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/nertworks-site-wide-ssl/test-ssl.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nertworks-site-wide-ssl/sitewidessl.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (Screenshot of the Settings Page.) image not found
The official readme.txt is a good inspiration

nertworks-site-wide-ssl/sitewidessl.php 92% from 13 tests

This is the main PHP file of "NertWorks Site Wide SSL" version 1.05, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nertworks-site-wide-ssl.php" instead of "sitewidessl.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 plugin211 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26423207
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.29MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png189.33KB31.06KB▼ 83.59%
images/icon16.png29.04KB0.80KB▼ 97.26%
images/nertworks_logo.png78.28KB35.29KB▼ 54.92%
images/icon.png3.80KB1.31KB▼ 65.40%