Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shopp-twilio/shopp-twilio.php+50
Accessing static property Shopp_Twilio::$accountsid as non static
Server metrics [RAM: ▼1.87MB] [CPU: ▼57.85ms] Passed 4 tests
Server-side resources used by Shopp + Twilio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 6.62 ▼34.26 |
Dashboard /wp-admin | 2.14 ▼1.20 | 7.31 ▼57.70 |
Posts /wp-admin/edit.php | 2.14 ▼1.21 | 7.24 ▼44.28 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.74 | 7.25 ▼95.16 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.11 ▼29.78 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Shopp + Twilio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.26 ▼1.09 | 2.11 ▲0.27 | 43.35 ▼0.80 |
Dashboard /wp-admin | 2,226 ▲23 | 5.86 ▲0.95 | 96.62 ▼8.06 | 42.36 ▼2.03 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.05 ▲0.03 | 34.80 ▼6.87 | 32.23 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.16 ▲5.74 | 618.46 ▼63.76 | 48.47 ▼3.60 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.24 ▲0.01 | 95.23 ▼7.24 | 44.37 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/shopp-twilio/shopp-twilio.php+50
Accessing static property Shopp_Twilio::$accountsid as non static
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 | 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
Almost there! Just fix the following items
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/ConnectApp.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/Application.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/OutgoingCallerIds.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/Participants.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/AuthorizedConnectApps.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/AuthorizedConnectApp.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/Applications.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/ShortCode.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/shopp-twilio/inc/Services/Twilio/Rest/Account.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-twilio/shopp-twilio.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The Shopp + Twilio WordPress admin page.2. An additional view of the Shopp + Twilio WordPress admin page.3. Shopp + Twilio iPhone 4S demo.) image required
shopp-twilio/shopp-twilio.php Passed 13 tests
"Shopp + Twilio" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
130 characters long description:
Merchants who have a WordPress ecommerce store are notified of new orders via a text message to their mobile phone through Twilio.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/shopp-twilio/inc/Services/twilio_ssl_certificate.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 236 | 658 | 1,490 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 3 | 6.00% |
▷ Concrete classes | 47 | 94.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 13 | 11.02% |
▷ Public methods | 106 | 89.83% |
▷ Protected methods | 8 | 6.78% |
▷ Private methods | 4 | 3.39% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.40MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 163.27KB | 58.22KB | ▼ 64.34% |
screenshot-3.png | 125.05KB | 38.65KB | ▼ 69.09% |
screenshot-2.png | 118.91KB | 38.81KB | ▼ 67.36% |