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.61MB] [CPU: ▼51.30ms] Passed 4 tests
Server-side resources used by Fast Secure Contact Form - Clockwork SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.09 | 5.94 ▼37.15 |
Dashboard /wp-admin | 2.40 ▼0.91 | 7.76 ▼39.51 |
Posts /wp-admin/edit.php | 2.40 ▼0.96 | 7.99 ▼38.51 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.49 | 7.77 ▼90.03 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 7.59 ▼23.80 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 2.40 | 7.20 |
FS Contact Form /wp-admin/admin.php?page=fscf | 2.40 | 8.23 |
Test /wp-admin/admin.php?page=clockwork_test_message | 2.40 | 6.30 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Fast Secure Contact Form - Clockwork SMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.29 ▼1.10 | 1.56 ▼0.21 | 41.54 ▼2.21 |
Dashboard /wp-admin | 2,246 ▲55 | 4.90 ▲0.02 | 99.16 ▼3.15 | 88.02 ▲46.59 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.02 ▲0.05 | 34.74 ▼3.97 | 34.06 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,553 ▲14 | 23.06 ▼0.22 | 784.99 ▲155.75 | 57.10 ▼5.97 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.28 ▲0.02 | 100.69 ▲0.45 | 72.92 ▲30.00 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 882 | 1.68 | 26.24 | 28.05 |
FS Contact Form /wp-admin/admin.php?page=fscf | 824 | 2.07 | 28.72 | 28.00 |
Test /wp-admin/admin.php?page=clockwork_test_message | 844 | 2.19 | 24.34 | 24.75 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/fscf-sms/fscf-sms.php+48
Only variables should be passed by reference
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clockwork_test_message
- > Notice in wp-content/plugins/fscf-sms/fscf-sms.php+48
Only variables should be passed by reference
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clockwork_test_message
- > Warning in wp-content/plugins/fscf-sms/main.php+156
Use of undefined constant FSCF_PLUGIN_DIR - assumed 'FSCF_PLUGIN_DIR' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=clockwork_test_message
- > Notice in wp-content/plugins/fscf-sms/templates/clockwork-test-message.php+8
Undefined index: to
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fscf-sms/fscf-sms.php:73
- > PHP Fatal error
Uncaught Error: Class 'Clockwork_Plugin' not found in wp-content/plugins/fscf-sms/main.php:2
- > PHP Fatal error
Uncaught Error: Class 'Clockwork' not found in wp-content/plugins/fscf-sms/lib/clockwork/class-WordPressClockwork.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Clockwork settings)
fscf-sms/fscf-sms.php Passed 13 tests
"Fast Secure Contact Form - Clockwork SMS" version 2.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Send SMS notifications when somebody submits your contact form
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,192 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 233 | 574 | 1,144 |
CSS | 1 | 4 | 0 | 25 |
JavaScript | 1 | 9 | 3 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 29.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.20 |
▷ 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 | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 37 | 78.72% |
▷ Protected methods | 9 | 19.15% |
▷ Private methods | 1 | 2.13% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 1 | 7.14% |
▷ Class constants | 13 | 92.86% |
▷ Public constants | 13 | 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
4 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 35.13KB | 11.65KB | ▼ 66.84% |
images/badrobot.png | 92.94KB | 10.20KB | ▼ 89.03% |
images/logo_32px_32px.png | 0.76KB | 0.45KB | ▼ 40.95% |
images/logo_16px_16px.png | 0.43KB | 0.31KB | ▼ 27.56% |