Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼136.96ms] Passed 4 tests
An overview of server-side resources used by WEBSMS.RU WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 34.23 ▲2.34 |
Dashboard /wp-admin | 3.15 ▲0.10 | 46.26 ▲1.13 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 43.11 ▼0.53 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 91.92 ▼549.40 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 32.82 ▲0.95 |
WEBSMS.RU /wp-admin/options-general.php?page=websms_ru_settings | 3.06 | 32.56 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WEBSMS.RU WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.80 ▼0.22 | 7.59 ▼0.24 | 43.60 ▼6.64 |
Dashboard /wp-admin | 2,972 ▲44 | 5.86 ▼0.23 | 134.18 ▼29.13 | 117.00 ▲0.11 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.68 ▲0.00 | 67.07 ▲1.84 | 87.64 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,675 ▲60 | 18.75 ▼2.49 | 349.95 ▲79.88 | 110.10 ▲2.04 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.00 ▼0.04 | 145.04 ▼22.83 | 114.40 ▼2.09 |
WEBSMS.RU /wp-admin/options-general.php?page=websms_ru_settings | 1,422 | 2.09 | 60.59 | 91.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/websms-ru/websms_ru_wordpress.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wordpress, sms notification, websms, sms
websms-ru/websms_ru_wordpress.php 92% from 13 tests
This is the main PHP file of "WEBSMS.RU WordPress" version 1.00, 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: It is recommended to name the main PHP file as the plugin slug ("websms-ru.php" instead of "websms_ru_wordpress.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
There were no executable files found in this plugin474 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 50 | 474 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_websms.png | 7.99KB | 3.90KB | ▼ 51.14% |