78% secure-post-with-link

Code Review | Secure post with link

WordPress plugin Secure post with link scored 78% from 54 tests.

About plugin

  • Plugin page: secure-post-with-...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Oct 2, 2016
  • Latest release: Mar 2, 2019
  • Number of updates: 21
  • Update frequency: every 42.0 days
  • Top authors: Lapak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.64MB] [CPU: ▼18.93ms] Passed 4 tests

This is a short check of server-side resources used by Secure post with link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.39 ▼2.72
Dashboard /wp-admin3.35 ▲0.0444.35 ▼5.67
Posts /wp-admin/edit.php3.46 ▲0.1148.65 ▲2.66
Add New Post /wp-admin/post-new.php3.17 ▼2.7229.40 ▼65.54
Media Library /wp-admin/upload.php3.27 ▲0.0433.48 ▼1.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Secure post with link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.131.79 ▼0.1944.60 ▼3.06
Dashboard /wp-admin2,209 ▲215.87 ▲0.98100.19 ▼3.1938.76 ▼6.47
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0139.22 ▼1.6233.99 ▼1.18
Add New Post /wp-admin/post-new.php1,547 ▲1318.33 ▼4.95598.57 ▼48.6163.22 ▲14.78
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0296.37 ▲1.5241.83 ▼1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/secure-post-with-link/secure-post-with-link.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/AdminUi.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Config.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/HandleFrontAccess.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/RegisterPostStatus.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/PluginActivation.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/Translation.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Lumi\\SecurePostWithLink\\ProviderInterface' not found in wp-content/plugins/secure-post-with-link/Controllers/HandlePostSave.php:11

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 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
7 plugin tags: url, status, link, post, private...

secure-post-with-link/secure-post-with-link.php 92% from 13 tests

The main file in "Secure post with link" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected456 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10222334364
PO File2182291
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces1
Traits1
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods3690.00%
▷ Protected methods00.00%
▷ Private methods410.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin