Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.73ms] Passed 4 tests
A check of server-side resources used by SmsNotice
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.36 ▲0.81 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.55 ▼4.25 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.59 ▼6.91 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 79.99 ▼28.58 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.83 ▲0.96 |
SmsNotice /wp-admin/plugins.php?page=smsnotice/SmsNotice.php | 3.27 | 33.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
SmsNotice: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.74 ▲0.38 | 2.15 ▲0.51 | 44.25 ▲4.94 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.06 | 81.79 ▼5.85 | 39.70 ▼5.00 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.01 | 36.63 ▼5.04 | 34.31 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.28 ▲0.01 | 646.59 ▲12.87 | 50.78 ▲3.04 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.21 ▼0.02 | 92.51 ▼7.71 | 40.01 ▼2.67 |
SmsNotice /wp-admin/plugins.php?page=smsnotice/SmsNotice.php | 793 | 2.00 | 26.75 | 32.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=smsnotice/SmsNotice.php
- > Notice in wp-content/plugins/smsnotice/setting.php+5
Undefined index: smsnotice_hidden
- > GET request to /wp-admin/plugins.php?page=smsnotice/SmsNotice.php
- > Notice in wp-content/plugins/smsnotice/SmsNotice.php+436
Undefined index: smsnotice_phonenum_check_hidden
- > GET request to /wp-admin/plugins.php?page=smsnotice/SmsNotice.php
- > Notice in wp-content/plugins/smsnotice/SmsNotice.php+452
Undefined index: smsnotice_condition_hidden
- > GET request to /wp-admin/plugins.php?page=smsnotice/SmsNotice.php
- > Notice in wp-content/plugins/smsnotice/SmsNotice.php+478
Undefined index: smsnotice_verification_hidden
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smsnotice/smsapi.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smsnotice/SmsNotice.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smsnotice/setting.php:2
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: fetion, sms, comments, notice, login
smsnotice/SmsNotice.php 92% from 13 tests
This is the main PHP file of "SmsNotice" version 0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("smsnotice.php" instead of "SmsNotice.php")
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
Good job! No executable or dangerous file extensions detected567 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 159 | 160 | 567 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 30.00% |
▷ Protected methods | 7 | 70.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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