Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▼11.12ms] Passed 4 tests
A check of server-side resources used by AP SMS Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.54 | 53.52 ▲10.37 |
Dashboard /wp-admin | 4.86 ▲1.55 | 51.05 ▲6.74 |
Posts /wp-admin/edit.php | 4.91 ▲1.55 | 55.39 ▲4.14 |
Add New Post /wp-admin/post-new.php | 4.77 ▼1.11 | 44.53 ▼63.22 |
Media Library /wp-admin/upload.php | 4.78 ▲1.55 | 43.60 ▲7.88 |
Server storage [IO: ▲26.25MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Total filesystem usage must be limited to 25MB (currently using 26.25MB)
Filesystem: 4,440 new files
Database: 5 new tables, 6 new options
New tables |
---|
appsbay_sms_messages |
appsbay_sms_gateways |
appsbay_sms_contacts |
appsbay_sms_settings |
appsbay_sms_groups |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AP SMS Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,267 ▲521 | 20.59 ▲6.21 | 2.05 ▲0.25 | 32.86 ▼11.88 |
Dashboard /wp-admin | 2,474 ▲286 | 11.23 ▲6.37 | 247.43 ▲139.57 | 47.88 ▲4.90 |
Posts /wp-admin/edit.php | 2,789 ▲711 | 7.91 ▲5.91 | 112.51 ▲71.13 | 56.88 ▲18.80 |
Add New Post /wp-admin/post-new.php | 1,709 ▲167 | 26.35 ▲8.11 | 695.14 ▲88.46 | 62.79 ▲5.25 |
Media Library /wp-admin/upload.php | 1,647 ▲259 | 10.29 ▲6.08 | 162.02 ▲55.42 | 42.20 ▼6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/tailwind.blade.php
- > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- > /wp-content/plugins/ap-sms-manager/src/Templates/dashboard.php
- > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
- > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/simple-tailwind.blade.php
- > /wp-content/plugins/ap-sms-manager/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
- > /wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/update_certs.php
- > /wp-content/plugins/ap-sms-manager/vendor/africastalking/africastalking/example/views/index.php
- 2490× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Sync/V1/Service/SyncMapList.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Chat/V1/ServiceOptions.php:172
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Version' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Preview/Wireless.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Input\\ArgvInput' not found in wp-content/plugins/ap-sms-manager/vendor/symfony/console/Input/StringInput.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php:37
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Studio/V1/FlowPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php:19
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: sms gateways, sms manager, sms, sms-api
ap-sms-manager/ap-sms-manager.php Passed 13 tests
This is the main PHP file of "AP SMS Manager" version 0.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
This plugin helps you send bulk sms easily.
Code Analysis 3% from 3 tests
File types 0% from 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
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/data/ca-certificates.crt
- .bat - Batch File in Windows
- ☣ wp-content/plugins/ap-sms-manager/vendor/nesbot/carbon/bin/carbon.bat
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,879 | 49,111 | 175,263 | 223,348 |
JavaScript | 52 | 10,574 | 6,817 | 45,394 |
Markdown | 67 | 2,778 | 1 | 6,828 |
JSON | 56 | 2 | 0 | 5,135 |
Vuejs Component | 49 | 221 | 2 | 3,780 |
XSD | 3 | 92 | 48 | 2,803 |
Blade | 7 | 18 | 26 | 257 |
YAML | 8 | 15 | 0 | 198 |
XML | 10 | 6 | 0 | 191 |
CSS | 4 | 4 | 26 | 82 |
reStructuredText | 1 | 74 | 78 | 74 |
Dockerfile | 3 | 16 | 0 | 35 |
Sass | 2 | 2 | 1 | 32 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 2 | 3 | 0 | 5 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 301.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 396 | |
Interfaces | 205 | |
Traits | 80 | |
Classes | 3,162 | |
▷ Abstract classes | 307 | 9.71% |
▷ Concrete classes | 2,855 | 90.29% |
▷ Final classes | 84 | 2.94% |
Methods | 20,952 | |
▷ Static methods | 1,590 | 7.59% |
▷ Public methods | 18,094 | 86.36% |
▷ Protected methods | 2,397 | 11.44% |
▷ Private methods | 461 | 2.20% |
Functions | 1,040 | |
▷ Named functions | 202 | 19.42% |
▷ Anonymous functions | 838 | 80.58% |
Constants | 589 | |
▷ Global constants | 62 | 10.53% |
▷ Class constants | 527 | 89.47% |
▷ Public constants | 511 | 96.96% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin