Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼3.06ms] Passed 4 tests
This is a short check of server-side resources used by SerwerSMS.pl
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 46.69 ▲3.47 |
Dashboard /wp-admin | 3.76 ▲0.45 | 56.78 ▲2.46 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 54.41 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 90.53 ▼19.90 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 42.02 ▲7.31 |
Send SMS /wp-admin/admin.php?page=serwersms_message | 3.16 | 19.39 |
Payments /wp-admin/admin.php?page=serwersms_payments | 3.16 | 17.26 |
Delivery reports /wp-admin/admin.php?page=serwersms_reports | 3.16 | 20.98 |
Groups /wp-admin/admin.php?page=serwersms_groups | 3.16 | 17.43 |
Received messages /wp-admin/admin.php?page=serwersms_recived | 3.16 | 20.48 |
Settings /wp-admin/admin.php?page=serwersms | 3.59 | 36.96 |
State of account /wp-admin/admin.php?page=serwersms_account | 3.16 | 20.19 |
Contacts /wp-admin/admin.php?page=serwersms_contacts | 3.16 | 20.81 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_serwersms_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SerwerSMS.pl
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.85 ▼0.88 | 8.53 ▲6.86 | 43.99 ▲3.11 |
Dashboard /wp-admin | 2,248 ▲71 | 5.59 ▼0.02 | 102.59 ▲8.96 | 81.07 ▲40.73 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 1.98 ▲0.00 | 39.37 ▲3.00 | 35.39 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,719 ▲193 | 21.93 ▼1.74 | 734.45 ▲42.18 | 55.74 ▼1.92 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 4.17 ▼0.05 | 106.53 ▼15.22 | 63.24 ▲16.21 |
Send SMS /wp-admin/admin.php?page=serwersms_message | 857 | 2.00 | 25.03 | 29.63 |
Payments /wp-admin/admin.php?page=serwersms_payments | 872 | 2.00 | 30.64 | 26.49 |
Delivery reports /wp-admin/admin.php?page=serwersms_reports | 875 | 2.00 | 24.37 | 27.14 |
Groups /wp-admin/admin.php?page=serwersms_groups | 854 | 2.00 | 24.80 | 23.45 |
Received messages /wp-admin/admin.php?page=serwersms_recived | 872 | 2.00 | 26.46 | 29.94 |
Settings /wp-admin/admin.php?page=serwersms | 857 | 2.13 | 26.46 | 24.50 |
State of account /wp-admin/admin.php?page=serwersms_account | 875 | 2.00 | 23.96 | 27.59 |
Contacts /wp-admin/admin.php?page=serwersms_contacts | 875 | 1.99 | 24.13 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_serwersms_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/SendersTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/StatsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/ErrorTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/ContactsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/SubaccountsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/PaymentsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/PremiumTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/MessagesTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/FilesTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/serwersmspl-widget/api/vendor/serwersms/serwersms-php-client/tests/GroupsTest.php:5
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== serwersmspl-widget ===
)
serwersmspl-widget/serwersms.php 85% from 13 tests
"SerwerSMS.pl" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("serwersmspl-widget.php" instead of "serwersms.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,274 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 737 | 951 | 3,260 |
PO File | 1 | 150 | 170 | 339 |
JavaScript | 3 | 85 | 1 | 247 |
CSS | 1 | 21 | 1 | 185 |
Markdown | 1 | 32 | 0 | 162 |
JSON | 3 | 0 | 0 | 81 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 205 | |
▷ Static methods | 37 | 18.05% |
▷ Public methods | 190 | 92.68% |
▷ Protected methods | 14 | 6.83% |
▷ Private methods | 1 | 0.49% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/serwersms_ico.png | 2.98KB | 0.20KB | ▼ 93.44% |
image/logo.png | 3.99KB | 1.71KB | ▼ 57.23% |
image/loading.png | 13.06KB | 0.40KB | ▼ 96.90% |