Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼145.70ms] Passed 4 tests
An overview of server-side resources used by LH Login Logger
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 22.37 ▼0.67 |
Dashboard /wp-admin | 3.11 ▲0.05 | 31.23 ▼6.93 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 29.34 ▲0.28 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 67.31 ▼575.48 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 24.02 ▲2.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for LH Login Logger
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,676 ▲70 | 16.02 ▲0.39 | 5.10 ▲0.09 | 75.66 ▼1.47 |
Dashboard /wp-admin | 2,929 ▲34 | 6.10 ▼0.08 | 114.10 ▼18.00 | 164.70 ▼8.68 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.24 ▼0.01 | 64.00 ▼1.37 | 137.10 ▼4.71 |
Add New Post /wp-admin/post-new.php | 3,815 ▲8 | 19.08 ▲0.30 | 415.91 ▼36.76 | 159.86 ▼5.30 |
Media Library /wp-admin/upload.php | 1,749 ▼6 | 5.55 ▲0.04 | 148.40 ▼0.86 | 196.54 ▲10.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-login-logger/lh-login-logger.php:331
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: admin, login, last login, user, plugin
lh-login-logger/lh-login-logger.php Passed 13 tests
"LH Login Logger" version 1.03's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Keeps track of the last login by each user and how many times they have logged in
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin167 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 149 | 53 | 167 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There are no PNG files in this plugin