Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.70ms] Passed 4 tests
Analyzing server-side resources used by Serverclub.Digital SMS for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.52 ▼8.17 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.83 ▲1.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.56 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 100.22 ▲6.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.80 ▲0.89 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Serverclub.Digital SMS for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.24 ▼1.25 | 1.61 ▼0.35 | 40.86 ▼5.04 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.99 | 103.35 ▼1.33 | 40.15 ▼5.09 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.04 | 39.61 ▼0.76 | 36.84 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.50 ▲0.34 | 636.44 ▲36.46 | 53.23 ▲0.77 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▼0.00 | 97.35 ▼2.68 | 41.10 ▼5.32 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/serverclub-digital-sms-for-woocommerce/includes/ServerClubDigitalTrigger.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Admin settings page), #2 (Admin settings page)
serverclub-digital-sms-for-woocommerce/serverclubsms-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "Serverclub.Digital SMS for WooCommerce" version 1.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("serverclub-digital-sms-for-woocommerce.php" instead of "serverclubsms-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected880 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 325 | 276 | 875 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 18 | 32.14% |
▷ Public methods | 49 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.50% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.46MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-1544x500.png | 145.20KB | 57.18KB | ▼ 60.62% |
banner-772x250.png | 66.19KB | 23.92KB | ▼ 63.86% |
icon-128x128.png | 10.04KB | 3.44KB | ▼ 65.76% |
screenshot-1.png | 116.62KB | 46.16KB | ▼ 60.42% |
screenshot-2.png | 113.12KB | 42.55KB | ▼ 62.39% |