83% secure-link-nginx

Code Review | Secure Link for Nginx

WordPress plugin Secure Link for Nginx scored83%from 54 tests.

About plugin

  • Plugin page: secure-link-nginx
  • Plugin version: 20181120...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Nov 21, 2018
  • Latest release: Nov 21, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: mhansent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 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.00MB] [CPU: ▼10.57ms] Passed 4 tests

Analyzing server-side resources used by Secure Link for Nginx
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.96 ▼5.98
Dashboard /wp-admin3.31 ▼0.0343.66 ▼19.53
Posts /wp-admin/edit.php3.36 ▲0.0151.29 ▲3.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.91 ▼15.65
Media Library /wp-admin/upload.php3.23 ▲0.0133.71 ▼1.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Secure Link for Nginx
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.211.63 ▼0.4435.12 ▼6.71
Dashboard /wp-admin2,209 ▲215.88 ▲0.96107.09 ▼12.3840.95 ▼5.73
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1640.37 ▲1.4535.20 ▲2.61
Add New Post /wp-admin/post-new.php1,514 ▼017.87 ▲0.29599.88 ▼41.2648.58 ▲0.53
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0497.63 ▼11.0443.21 ▼2.09

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/secure-link-nginx/secure-link-nginx.php:47

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 86% from 29 tests

readme.txt 94% 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 require attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

secure-link-nginx/secure-link-nginx.php 77% from 13 tests

The main PHP script in "Secure Link for Nginx" version 20181120... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20181120...")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152715

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin