Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼166.92ms] Passed 4 tests
An overview of server-side resources used by WP Common security Checklist
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.15 | 47.75 ▲14.21 |
Dashboard /wp-admin | 3.10 ▲0.05 | 33.22 ▼23.19 |
Posts /wp-admin/edit.php | 3.11 ▼0.00 | 32.53 ▼15.36 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.33 | 33.20 ▼627.36 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 30.39 ▼1.75 |
WP Common security Checklist /wp-admin/options-general.php?page=csc_plugin_options | 3.11 | 37.73 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Common security Checklist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 16.05 ▲0.10 | 8.12 ▼1.11 | 50.05 ▼3.64 |
Dashboard /wp-admin | 2,964 ▲33 | 6.01 ▲0.02 | 141.07 ▼3.47 | 110.81 ▼5.94 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.75 ▲0.03 | 68.23 ▼2.53 | 90.90 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,525 ▲27 | 17.82 ▼0.98 | 369.38 ▼17.80 | 105.95 ▼7.90 |
Media Library /wp-admin/upload.php | 1,825 ▲3 | 5.06 ▲0.04 | 150.55 ▼3.86 | 122.88 ▼12.76 |
WP Common security Checklist /wp-admin/options-general.php?page=csc_plugin_options | 1,493 | 2.73 | 72.47 | 143.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-common-security-checklist/lib/common-security-checklist-ssl.php+53
Undefined variable: output
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/lib/common-security-checklist-ssl.php+53
Undefined variable: output
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+346
Undefined index: remove_meta_generator_tag
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+384
Undefined index: hide_login_url
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+363
Undefined index: disable_theme_editor
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+445
Undefined index: protect_sensitive_files
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+463
Undefined index: disable_php_execution_directories
- > GET request to /wp-admin/options-general.php?page=csc_plugin_options
- > Notice in wp-content/plugins/wp-common-security-checklist/admin/common-security-checklist-admin-options.php+481
Undefined index: enable_comment_captcha
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
wp-common-security-checklist/common-security-checklist.php 85% from 13 tests
The principal PHP file in "WP Common security Checklist" v. 1.0.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-common-security-checklist.php" instead of "common-security-checklist.php")
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,317 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 9 | 367 | 60 | 1,061 |
CSS | 3 | 28 | 13 | 365 |
PO File | 1 | 58 | 351 | 205 |
JavaScript | 2 | 7 | 8 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.89 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 26 | 36.11% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 1 | 1.39% |
▷ Private methods | 3 | 4.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/logo.png | 9.33KB | 4.45KB | ▼ 52.28% |