Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.74ms] Passed 4 tests
An overview of server-side resources used by SendToSMS Sharing Button for Jetpack
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 26.39 ▼9.90 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.49 ▼11.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.23 ▼17.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.66 ▼4.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.51 ▲5.83 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SendToSMS Sharing Button for Jetpack
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼307 | 14.11 ▼0.03 | 0.53 ▼1.14 | 18.74 ▼22.30 |
Dashboard /wp-admin | 2,195 ▲17 | 5.55 ▼0.10 | 107.17 ▲4.70 | 46.82 ▲3.29 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.04 | 38.31 ▼4.85 | 32.92 ▼12.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.66 ▼0.98 | 632.92 ▼58.15 | 71.21 ▲14.08 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.14 ▼0.07 | 128.86 ▲28.37 | 55.37 ▲10.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sendtosms-sharing-button-for-jetpack/jetpack-sendtosms.php
- > /wp-content/plugins/sendtosms-sharing-button-for-jetpack/includes/class.sendtosms-service.php
- > /wp-content/plugins/sendtosms-sharing-button-for-jetpack/includes/class.sendtosms-source.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (SendToSMS button shown as an available option in the Jetpack sharing module.), #2 (The SendToSMS button alongside other share buttons in a post.)
sendtosms-sharing-button-for-jetpack/jetpack-sendtosms.php 85% from 13 tests
"SendToSMS Sharing Button for Jetpack" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sendtosms-sharing-button-for-jetpack.php" instead of "jetpack-sendtosms.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin213 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 13 | 169 |
CSS | 1 | 7 | 8 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/shape@2x.png | 1.14KB | 1.31KB | 0.00% |
assets/images/SMSIcon_share.png | 12.78KB | 5.35KB | ▼ 58.12% |
assets/images/shape.png | 0.63KB | 0.78KB | 0.00% |
assets/images/SMSIcon_share_sm_gray.png | 3.41KB | 1.59KB | ▼ 53.26% |
assets/images/SMSIcon_share_sm_white.png | 3.70KB | 2.14KB | ▼ 42.04% |