84% force-protocol-less-links

Code Review | Force Protocol-less Links

WordPress plugin Force Protocol-less Links scored84%from 54 tests.

About plugin

  • Plugin page: force-protocol-le...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Mar 5, 2018
  • Number of updates: 4
  • Update frequency: every 44.8 days
  • Top authors: SultanICQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.35ms] Passed 4 tests

This is a short check of server-side resources used by Force Protocol-less Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.79 ▼4.48
Dashboard /wp-admin3.37 ▲0.0744.90 ▼3.29
Posts /wp-admin/edit.php3.41 ▲0.0544.46 ▲0.58
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.19 ▼18.19
Media Library /wp-admin/upload.php3.31 ▲0.0832.00 ▲0.78

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Force Protocol-less Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.74 ▲0.001.69 ▼0.5642.84 ▼1.37
Dashboard /wp-admin2,209 ▲214.87 ▼0.05104.87 ▼2.8844.27 ▲2.48
Posts /wp-admin/edit.php2,086 ▼32.00 ▲0.0133.02 ▼8.5032.18 ▼4.22
Add New Post /wp-admin/post-new.php1,547 ▲1318.44 ▼4.55600.36 ▼11.0774.21 ▲0.89
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0897.86 ▼4.0243.67 ▼0.88

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-protocol-less-links/index.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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: protocol-less, ssl, https, http

force-protocol-less-links/index.php 92% from 13 tests

Analyzing the main PHP file in "Force Protocol-less Links" version 1.1.1
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("force-protocol-less-links.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15718

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin