Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.92MB] [CPU: ▼50.10ms] Passed 4 tests
Analyzing server-side resources used by WP e-Commerce - Clockwork SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.39 | 4.67 ▼35.89 |
Dashboard /wp-admin | 2.08 ▼1.22 | 7.33 ▼39.63 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.89 ▼42.63 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.76 ▼82.26 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 7.92 ▼27.69 |
Test /wp-admin/admin.php?page=clockwork_test_message | 2.09 | 5.64 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 2.09 | 6.23 |
WP e-Commerce /wp-admin/admin.php?page=clockwork_wpecommerce | 2.09 | 6.01 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
clockwork_wpecommerce |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP e-Commerce - Clockwork SMS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 14.76 ▲0.39 | 1.69 ▼0.59 | 42.79 ▲3.86 |
Dashboard /wp-admin | 2,246 ▲61 | 5.82 ▼0.04 | 109.79 ▲5.35 | 97.01 ▲50.25 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.00 ▲0.00 | 37.59 ▲0.58 | 33.81 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,701 ▲167 | 22.49 ▼0.56 | 726.04 ▲35.31 | 56.32 ▼13.08 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.21 ▲0.00 | 95.50 ▼13.59 | 87.36 ▲39.41 |
Test /wp-admin/admin.php?page=clockwork_test_message | 844 | 2.16 | 26.26 | 27.16 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 879 | 1.71 | 22.75 | 28.00 |
WP e-Commerce /wp-admin/admin.php?page=clockwork_wpecommerce | 896 | 2.07 | 25.11 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/mediaburst-ecommerce-sms-notifications/ecommerce-sms-notifications.php+47
Only variables should be passed by reference
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- clockwork_wpecommerce
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clockwork_wpecommerce
- > Notice in wp-content/plugins/mediaburst-ecommerce-sms-notifications/ecommerce-sms-notifications.php+47
Only variables should be passed by reference
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clockwork_wpecommerce
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clockwork_wpecommerce
- > Warning in wp-content/plugins/mediaburst-ecommerce-sms-notifications/main.php+215
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=clockwork_test_message
- > Notice in wp-content/plugins/mediaburst-ecommerce-sms-notifications/templates/clockwork-test-message.php+8
Undefined index: to
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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Clockwork_Plugin' not found in wp-content/plugins/mediaburst-ecommerce-sms-notifications/main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mediaburst-ecommerce-sms-notifications/ecommerce-sms-notifications.php:72
- > PHP Fatal error
Uncaught Error: Class 'Clockwork' not found in wp-content/plugins/mediaburst-ecommerce-sms-notifications/lib/clockwork/class-WordPressClockwork.php:15
- > 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 93% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
mediaburst-ecommerce-sms-notifications/ecommerce-sms-notifications.php 92% from 13 tests
The primary PHP file in "WP e-Commerce - Clockwork SMS" version 2.4.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("mediaburst-ecommerce-sms-notifications.php" instead of "ecommerce-sms-notifications.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,404 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 294 | 721 | 1,356 |
CSS | 1 | 4 | 0 | 25 |
JavaScript | 1 | 9 | 3 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 34.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 1 | 1.52% |
▷ Public methods | 52 | 78.79% |
▷ Protected methods | 13 | 19.70% |
▷ Private methods | 1 | 1.52% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 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.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_16px_16px.png | 0.43KB | 0.31KB | ▼ 27.56% |
images/logo_32px_32px.png | 0.76KB | 0.45KB | ▼ 40.95% |
images/badrobot.png | 92.94KB | 10.20KB | ▼ 89.03% |