Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.76ms] Passed 4 tests
An overview of server-side resources used by پیامک پستی سفارشات ووکامرس
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.91 ▲0.21 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.34 ▼2.56 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.16 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.19 ▼8.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.04 ▼0.14 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for پیامک پستی سفارشات ووکامرس
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.20 ▼1.03 | 5.37 ▲3.66 | 42.59 ▼5.04 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.06 | 117.43 ▲6.73 | 43.72 ▼1.06 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.03 | 40.74 ▼0.84 | 36.42 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,411 ▼122 | 18.23 ▼4.84 | 585.75 ▼45.91 | 48.11 ▼5.67 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.14 ▼0.12 | 98.41 ▼5.27 | 42.09 ▼3.78 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/postage-tracking-code-sms/views/metabox.php
- > /wp-content/plugins/postage-tracking-code-sms/views/option-panel.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/postage-tracking-code-sms/views/settings.php:8
- > PHP Fatal error
Uncaught Error: Class 'PostageTrackingCodeSms\\classes\\ViMetaBoxes' not found in wp-content/plugins/postage-tracking-code-sms/classes/SmsMetaBox.php:5
- > PHP Fatal error
Uncaught Error: Class 'PostageTrackingCodeSms\\classes\\ViSingleton' not found in wp-content/plugins/postage-tracking-code-sms/classes/OptionPanel.php:5
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/postage-tracking-code-sms/views/metabox.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/postage-tracking-code-sms/views/metabox.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PostageTrackingCodeSms\\classes\\ViSingleton' not found in wp-content/plugins/postage-tracking-code-sms/classes/ViMetaBoxes.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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: post, order, woocommerce, sms
postage-tracking-code-sms/PostageTrackingCodeSms.php 92% from 13 tests
"پیامک پستی سفارشات ووکامرس" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("postage-tracking-code-sms.php" instead of "PostageTrackingCodeSms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 210 | 299 | 904 |
JavaScript | 2 | 19 | 8 | 121 |
SVG | 1 | 0 | 0 | 15 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 23 | 34.33% |
▷ Public methods | 60 | 89.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ 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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 26.19KB | 10.85KB | ▼ 58.59% |
images/ic.png | 1.87KB | 0.32KB | ▼ 82.99% |