84% gauntlet-security

Code Review | Gauntlet Security

WordPress plugin Gauntlet Security scored 84% from 54 tests.

About plugin

  • Plugin page: gauntlet-security
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Jul 19, 2016
  • Number of updates: 18
  • Update frequency: every 37.6 days
  • Top authors: cbergen (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active / 7,185 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests

Server-side resources used by Gauntlet Security
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.58 ▼7.50
Dashboard /wp-admin3.32 ▲0.0247.20 ▼0.30
Posts /wp-admin/edit.php3.37 ▲0.0151.60 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.20 ▼11.92
Media Library /wp-admin/upload.php3.24 ▲0.0134.34 ▼1.06
Gauntlet Security /wp-admin/tools.php?page=gauntlet-security3.5142.47
More Info /wp-admin/admin.php?page=gauntlet-more-info3.2930.72

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Gauntlet Security
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.101.63 ▼0.0439.22 ▼4.03
Dashboard /wp-admin2,210 ▲225.85 ▲0.94110.19 ▼4.0144.00 ▼1.01
Posts /wp-admin/edit.php2,096 ▲42.05 ▼0.0038.31 ▼4.4836.60 ▲1.23
Add New Post /wp-admin/post-new.php1,536 ▲1623.52 ▲0.46638.54 ▼6.8550.13 ▼13.40
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0599.49 ▲0.2243.32 ▲0.69
Gauntlet Security /wp-admin/tools.php?page=gauntlet-security3,8602.1565.0140.63
More Info /wp-admin/admin.php?page=gauntlet-more-info9482.1029.2328.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=gauntlet-security
    • > Warning in wp-content/plugins/gauntlet-security/admin/includes/classes/gus_RenameThemes.php+82
    Use of undefined constant WP_SITEURL - assumed 'WP_SITEURL' (this will throw an Error in a future version of PHP)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The primary PHP file in "Gauntlet Security" version 1.4.1 is used by WordPress to initiate all plugin functionality
118 characters long description:
Performs a detailed security analysis of your WordPress installation. Gives tips on how to make your site more secure.

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 detected5,919 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,0252075,332
CSS25569330
JavaScript55948257

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.16
▷ Minimum class complexity6.00
▷ Maximum class complexity52.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes13.12%
Methods269
▷ Static methods00.00%
▷ Public methods5319.70%
▷ Protected methods19773.23%
▷ Private methods197.06%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/logo_300.png1.63KB1.77KB0.00%
admin/assets/images/icon_sprite_20.png3.38KB2.45KB▼ 27.70%
admin/assets/images/logo_200.png4.35KB4.16KB▼ 4.31%