Benchmarks
Plugin footprint 65% from 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: ▲5.10MB] [CPU: ▲26.19ms] 75% from 4 tests
A check of server-side resources used by WP SMS Plugin Notification for WordPress
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.10MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.97 ▲5.50 | 65.11 ▲25.74 |
Dashboard /wp-admin | 8.99 ▲5.68 | 74.07 ▲24.97 |
Posts /wp-admin/edit.php | 8.99 ▲5.63 | 80.28 ▲35.18 |
Add New Post /wp-admin/post-new.php | 9.48 ▲3.59 | 106.78 ▲18.86 |
Media Library /wp-admin/upload.php | 8.99 ▲5.76 | 77.62 ▲44.36 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.99 | 64.28 |
Server storage [IO: ▲16.56MB] [DB: ▲0.32MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2,880 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fs_active_plugins |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
fs_accounts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
twl_notification_option |
twl_logs |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP SMS Plugin Notification for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 14.72 ▲0.35 | 1.85 ▲0.16 | 28.35 ▼11.19 |
Dashboard /wp-admin | 2,262 ▲82 | 5.61 ▼0.04 | 89.62 ▲3.07 | 46.26 ▲9.06 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.10 ▲0.10 | 40.56 ▲3.24 | 38.22 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.02 ▼0.08 | 672.61 ▼19.13 | 55.82 ▲8.51 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.23 ▼0.04 | 105.00 ▲10.73 | 48.35 ▲5.11 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,086 | 1.66 | 26.01 | 28.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-twilio-core/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- fs_debug_mode
- fs_accounts
- db_upgraded
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2600× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryContext.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/wp-twilio-core/twilio-php/tests/Twilio/Integration/Studio/V1/FlowTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionList.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeList.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Chat/V2/Service/BindingPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/wp-twilio-core/twilio-php/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldInstance.php:31
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/wp-twilio-core/twilio-php/tests/Twilio/Integration/Video/V1/RecordingSettingsTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/wp-twilio-core/twilio-php/tests/Twilio/Integration/Preview/Understand/Assistant/Task/FieldTest.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-twilio-core/core.php 85% from 13 tests
The entry point to "WP SMS Plugin Notification for WordPress" version 1.5.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-twilio-core.php" instead of "core.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin217,541 lines of code in 2,805 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,752 | 48,773 | 149,362 | 198,712 |
PO File | 14 | 7,116 | 8,617 | 15,647 |
Markdown | 12 | 976 | 0 | 2,551 |
CSS | 14 | 48 | 10 | 238 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 2 | 0 | 0 | 62 |
YAML | 2 | 0 | 1 | 47 |
XML | 3 | 3 | 1 | 41 |
make | 1 | 14 | 2 | 40 |
Dockerfile | 1 | 3 | 0 | 8 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 357 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 3,230 | |
▷ Abstract classes | 331 | 10.25% |
▷ Concrete classes | 2,899 | 89.75% |
▷ Final classes | 2 | 0.07% |
Methods | 19,421 | |
▷ Static methods | 784 | 4.04% |
▷ Public methods | 17,464 | 89.92% |
▷ Protected methods | 1,566 | 8.06% |
▷ Private methods | 391 | 2.01% |
Functions | 274 | |
▷ Named functions | 134 | 48.91% |
▷ Anonymous functions | 140 | 51.09% |
Constants | 171 | |
▷ Global constants | 109 | 63.74% |
▷ Class constants | 62 | 36.26% |
▷ Public constants | 62 | 100.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
22 PNG files occupy 0.30MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpsms-edd.png | 14.98KB | 14.21KB | ▼ 5.13% |
freemius/assets/img/bulksms.png | 5.96KB | 4.30KB | ▼ 27.81% |
assets/images/aicontentlylogo.png | 3.51KB | 1.61KB | ▼ 54.24% |
assets/images/wpsms-bookings.png | 14.60KB | 13.79KB | ▼ 5.57% |
assets/images/wpsms-givewp.png | 13.38KB | 14.18KB | 0.00% |