94% hello-security

Code Review | Hello Security

WordPress plugin Hello Security scored 94% from 54 tests.

About plugin

  • Plugin page: hello-security
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 5.8.1
  • First release: May 20, 2015
  • Latest release: May 20, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: m_butcher (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 839 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.41ms] Passed 4 tests

Analyzing server-side resources used by Hello Security
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0138.63 ▼0.43
Dashboard /wp-admin3.06 ▲0.0148.78 ▼7.89
Posts /wp-admin/edit.php3.12 ▲0.0153.40 ▲3.01
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.71 ▼570.07
Media Library /wp-admin/upload.php3.01 ▲0.0135.25 ▲0.76

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Security
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲11315.97 ▲0.438.11 ▼0.0950.06 ▲1.96
Dashboard /wp-admin2,979 ▲485.91 ▼0.15146.33 ▼2.68118.61 ▲1.68
Posts /wp-admin/edit.php2,742 ▲32.68 ▼0.0167.37 ▼12.4594.47 ▲3.15
Add New Post /wp-admin/post-new.php1,677 ▼618.86 ▲0.10378.97 ▼5.53122.20 ▲9.26
Media Library /wp-admin/upload.php1,813 ▲625.03 ▲0.05149.78 ▲0.22131.00 ▼2.07

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/hello-security/hello-security.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: security, hello, security best practice

hello-security/hello-security.php Passed 13 tests

The main PHP script in "Hello Security" version 1.0 is automatically included on every request by WordPress
79 characters long description:
Built using the base code of the popular plugin, Hello Dolly, this plugin gives

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192253

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin