Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.85MB] [CPU: ▼32.22ms] Passed 4 tests
Server-side resources used by gk-sms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.52 ▲3.59 |
Dashboard /wp-admin | 3.09 ▼0.21 | 23.10 ▼28.36 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 25.44 ▼21.94 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 23.39 ▼71.85 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 27.63 ▼6.74 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
gk-sms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.72 ▲0.35 | 2.19 ▲0.29 | 43.65 ▼0.92 |
Dashboard /wp-admin | 2,204 ▲29 | 5.55 ▼0.10 | 85.59 ▼13.87 | 38.28 ▼4.13 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.96 ▼0.02 | 35.82 ▲2.63 | 37.23 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.84 ▼0.79 | 645.67 ▼4.47 | 51.12 ▼1.01 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.22 ▲0.01 | 109.75 ▲14.53 | 45.44 ▲5.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gk-sms/lib/twilio-php/tests/Bootstrap.php
- 56× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/Notification.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/ShortCode.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/UsageRecord.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/Account.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_UsageResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/TimeRangeResource.php:9
- > PHP Warning
require_once(Twilio/RequestValidator.php): failed to open stream: No such file or directory in wp-content/plugins/gk-sms/lib/twilio-php/tests/RequestValidatorTest.php on line 3
- > PHP Warning
require_once(Twilio/Twiml.php): failed to open stream: No such file or directory in wp-content/plugins/gk-sms/lib/twilio-php/tests/TwimlTest.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/Members.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/Accounts.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/gk-sms/lib/twilio-php/Services/Twilio/Rest/Application.php:3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== gk-sms ===
)
gk-sms/gk-sms.php Passed 13 tests
The principal PHP file in "gk-sms" v. 1.0.1 is loaded by WordPress automatically on each request
112 characters long description:
Twilio integration for WordPress. Send SMS text messages from your WordPress site using a valid Twilio account!
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
Everything looks great! No dangerous files found in this plugin12,627 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,001 | 59 | 6,359 |
PHP | 67 | 674 | 775 | 3,452 |
JavaScript | 4 | 727 | 462 | 1,641 |
reStructuredText | 24 | 960 | 1,181 | 600 |
Markdown | 2 | 111 | 0 | 232 |
make | 2 | 28 | 8 | 134 |
Python | 2 | 71 | 143 | 96 |
HTML | 3 | 2 | 0 | 71 |
JSON | 1 | 0 | 0 | 29 |
XML | 1 | 0 | 0 | 7 |
YAML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 3 | 3.30% |
▷ Concrete classes | 88 | 96.70% |
▷ Final classes | 0 | 0.00% |
Methods | 269 | |
▷ Static methods | 13 | 4.83% |
▷ Public methods | 257 | 95.54% |
▷ Protected methods | 10 | 3.72% |
▷ Private methods | 2 | 0.74% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/bootstrap/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
lib/bootstrap/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |