Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.64ms] Passed 4 tests
This is a short check of server-side resources used by Lana Security
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.19 ▼5.09 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.62 ▼0.03 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.29 ▲4.74 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.30 ▼13.84 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.77 ▲4.39 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_lana_security_logs |
wp_lana_security_login_logs |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lana Security
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.10 ▼0.17 | 1.63 ▼0.88 | 38.71 ▼3.74 |
Dashboard /wp-admin | 2,226 ▲52 | 5.51 ▼0.07 | 83.30 ▼20.11 | 37.78 ▼6.41 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.01 | 45.86 ▲8.15 | 38.87 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,551 ▲15 | 23.14 ▲4.96 | 662.32 ▲44.60 | 60.44 ▼9.37 |
Media Library /wp-admin/upload.php | 1,431 ▲37 | 4.24 ▲0.05 | 97.20 ▼11.72 | 41.96 ▼4.81 |
Lana Security /wp-admin/lana-security.php | 26 | 0.42 | 0.10 | 15.45 |
Settings /wp-admin/lana-security-settings.php | 26 | 0.42 | 0.09 | 6.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_lana_security_logs
- wp_lana_security_login_logs
- 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 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-security/includes/class-lana-security-plugins-list-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-security/includes/class-lana-security-login-logs-list-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-security/includes/class-lana-security-logs-list-table.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/lana-security.php
- > Network (severe)
wp-admin/lana-security.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/lana-security-settings.php
- > Network (severe)
wp-admin/lana-security-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5 in lana-security/assets to your readme.txt
lana-security/lana-security.php Passed 13 tests
This is the main PHP file of "Lana Security" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Simple and easy to use security plugin.
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 plugin3,052 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 500 | 665 | 1,790 |
JSON | 1 | 0 | 0 | 1,205 |
JavaScript | 1 | 11 | 16 | 30 |
CSS | 2 | 5 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 98.08% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-header.png | 28.91KB | 29.86KB | 0.00% |