67% server-security-scan

Code Review | Server Security Scan

WordPress plugin Server Security Scan scored 67% from 54 tests.

About plugin

  • Plugin page: server-security-scan
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.6
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Aug 23, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: wordpressutils (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 5,334 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.03ms] Passed 4 tests

An overview of server-side resources used by Server Security Scan
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.04 ▼3.10
Dashboard /wp-admin2.05 ▼1.266.26 ▼49.05
Posts /wp-admin/edit.php2.05 ▼1.315.96 ▼38.96
Add New Post /wp-admin/post-new.php2.05 ▼3.845.05 ▼95.06
Media Library /wp-admin/upload.php2.05 ▼1.184.71 ▼29.03
Run Checks /wp-admin/admin.php?page=wpu-ssc-check2.055.35
PHPInfo /wp-admin/admin.php?page=wpu-ssc-phpinfo2.055.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Server Security Scan
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.47 ▼0.121.75 ▼0.3143.24 ▼1.37
Dashboard /wp-admin2,232 ▲445.77 ▼0.1394.81 ▼17.0239.72 ▼1.82
Posts /wp-admin/edit.php2,118 ▲292.00 ▼0.0640.15 ▲1.3935.39 ▲3.72
Add New Post /wp-admin/post-new.php1,561 ▲4718.50 ▲0.97606.35 ▼37.7358.34 ▲7.81
Media Library /wp-admin/upload.php1,411 ▲294.22 ▲0.1095.27 ▼4.0743.21 ▲1.76
Run Checks /wp-admin/admin.php?page=wpu-ssc-check12,9431.2032.04102.96
PHPInfo /wp-admin/admin.php?page=wpu-ssc-phpinfo6,1791.8932.0970.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpu-ssc-phpinfo
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpu-ssc-phpinfo
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpu_ssc_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpu-ssc-phpinfo
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wpu_ssc_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/server-security-scan/security.php
    • > /wp-content/plugins/server-security-scan/check.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Server Security Scan - Result Page) image missing
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

server-security-scan/security.php 85% from 13 tests

The main PHP script in "Server Security Scan" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("server-security-scan.php" instead of "security.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 423 characters long)

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
Good job! No executable or dangerous file extensions detected159 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23721151
CSS1108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin