88% display-ssh

Code Review | Display SSH Keys

WordPress plugin Display SSH Keys scored 88% from 54 tests.

About plugin

  • Plugin page: display-ssh
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 5.8.1
  • First release: Oct 13, 2015
  • Latest release: Oct 13, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: robertsky_ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads


Plugin footprint Passed 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: ▼151.22ms] Passed 4 tests

Server-side resources used by Display SSH Keys
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1342.31 ▲7.66
Dashboard /wp-admin3.07 ▲0.0238.00 ▼23.42
Posts /wp-admin/edit.php3.13 ▲0.0250.36 ▲3.11
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.55 ▼575.96
Media Library /wp-admin/upload.php3.01 ▲0.0127.50 ▼8.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Display SSH Keys
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13116.32 ▲0.7510.93 ▼0.1452.65 ▼6.63
Dashboard /wp-admin2,967 ▲335.99 ▼0.22143.85 ▼31.47127.43 ▼1.65
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.1386.45 ▲16.7493.32 ▼4.80
Add New Post /wp-admin/post-new.php1,683 ▲7918.79 ▲0.01386.28 ▼20.39114.19 ▼2.81
Media Library /wp-admin/upload.php1,807 ▼05.05 ▼0.00154.43 ▼6.28122.23 ▼0.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/display-ssh/public/partials/display-ssh-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/display-ssh/admin/partials/display-ssh-admin-display.php:21

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)
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === display-ssh === )
You can take inspiration from this readme.txt

display-ssh/display-ssh.php Passed 13 tests

The primary PHP file in "Display SSH Keys" version 1.0.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
A simple plugin to show public keys of the authors.

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
There were no executable files found in this plugin205 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin