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.02MB] [CPU: ▼296.11ms] Passed 4 tests
Server-side resources used by WPPM Login Security Notification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.00 ▲5.49 |
Dashboard /wp-admin | 3.41 ▲0.01 | 31.96 ▼0.82 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.74 ▼1.99 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.08 | 97.91 ▼1,174.60 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 23.45 ▼7.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPPM Login Security Notification: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲40 | 15.89 ▲0.31 | 5.64 ▼0.64 | 2.82 ▲0.06 |
Dashboard /wp-admin | 2,895 ▲34 | 5.98 ▼0.17 | 113.90 ▼16.74 | 154.52 ▼9.06 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▲0.00 | 63.35 ▲1.09 | 138.38 ▼4.89 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.02 ▼5.39 | 398.01 ▼25.85 | 157.48 ▼0.06 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.53 ▲0.08 | 142.33 ▼7.34 | 189.31 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wppm-login-security-notification/functions.php:81
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: notify, email, alert, security, notification...
wppm-login-security-notification/functions.php 77% from 13 tests
Analyzing the main PHP file in "WPPM Login Security Notification" version 1.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wppm-login-security-notification.php" instead of "functions.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: The description should be shorter than 140 characters (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected57 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 52 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 4 | |
▷ Named functions | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected