Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.91ms] Passed 4 tests
Analyzing server-side resources used by Small WP Security - SP SWS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.85 ▲0.58 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.14 ▼3.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 41.33 ▼4.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.78 ▼15.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 30.50 ▼4.17 |
Small WP Security /wp-admin/options-general.php?page=sp_wp_security | 3.22 | 28.38 |
Server storage [IO: ▲1.23MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 12 new options
New WordPress options |
---|
sp_wp_security_comments |
db_upgraded |
sp_wp_security_link_meta |
sp_wp_security_security_header |
widget_theysaidso_widget |
sp_wp_security_wp_version |
theysaidso_admin_options |
widget_recent-posts |
sp_wp_security_emojis |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Small WP Security - SP SWS: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.27 ▼0.99 | 4.57 ▲2.61 | 39.12 ▼5.46 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.94 | 99.95 ▼10.70 | 40.89 ▲1.85 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 37.15 ▼1.86 | 34.36 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.42 ▲0.12 | 629.57 ▲5.73 | 71.46 ▲7.42 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.02 | 95.97 ▲1.09 | 44.13 ▲1.85 |
Small WP Security /wp-admin/options-general.php?page=sp_wp_security | 997 | 2.04 | 25.45 | 53.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Settings 01), #2 (Settings 02), #3 (Settings 03)
small-wp-security/sp-wp-security.php 85% from 13 tests
The principal PHP file in "Small WP Security - SP SWS" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("small-wp-security.php" instead of "sp-wp-security.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,476 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 2 | 11 | 13 | 2,387 |
PHP | 6 | 54 | 63 | 290 |
PO File | 2 | 45 | 117 | 128 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 67.53KB | 23.85KB | ▼ 64.68% |
screenshot-3.png | 8.76KB | 3.89KB | ▼ 55.57% |
screenshot-2.png | 51.38KB | 17.88KB | ▼ 65.20% |