Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.15MB] [CPU: ▼159.58ms] Passed 4 tests
An overview of server-side resources used by Admin login SMS notification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.57 ▲13.72 |
Dashboard /wp-admin | 2.99 ▼0.07 | 31.42 ▼13.69 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 32.50 ▼28.53 |
Add New Post /wp-admin/post-new.php | 4.98 ▼0.45 | 74.45 ▼591.19 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 27.23 ▼4.92 |
SMS Login Notification /wp-admin/options-general.php?page=wp_smsrunot | 2.96 | 21.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 3 new options
New WordPress options |
---|
wp_smsrunot_enable |
wp_smsrunot_apikey |
wp_smsrunot_number |
Browser metrics Passed 4 tests
Admin login SMS 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,684 ▲88 | 15.84 ▲0.34 | 8.28 ▼0.91 | 52.56 ▲7.70 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.27 | 147.66 ▼12.88 | 112.76 ▼0.59 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.83 ▲0.15 | 66.03 ▼3.47 | 95.26 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,675 ▲5 | 18.75 ▼0.35 | 357.34 ▲0.36 | 111.04 ▼3.67 |
Media Library /wp-admin/upload.php | 1,812 ▲8 | 5.06 ▼0.01 | 156.11 ▲9.43 | 126.61 ▲7.66 |
SMS Login Notification /wp-admin/options-general.php?page=wp_smsrunot | 1,043 | 2.05 | 52.63 | 63.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 3 options
- wp_smsrunot_number
- wp_smsrunot_enable
- wp_smsrunot_apikey
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_smsrunot
- > Notice in wp-content/plugins/admin-login-sms-notification/wp-admin-login-sms-notification.php+74
Undefined index: logged_in_once
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-login-sms-notification/wp-admin-login-sms-notification.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== admin-login-sms-notification ===
) - Screenshots: Screenshot #1 (**Settings** - Setting page.) image required
admin-login-sms-notification/wp-admin-login-sms-notification.php 92% from 13 tests
The principal PHP file in "Admin login SMS notification" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-login-sms-notification.php" instead of "wp-admin-login-sms-notification.php")
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
No dangerous file extensions were detected85 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 31 | 51 |
PO File | 2 | 9 | 10 | 34 |
PHP code Passed 2 tests
An overview of 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.50 |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.83KB | 8.37KB | ▼ 55.55% |