Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.49MB] [CPU: ▲25.29ms] 75% from 4 tests
An overview of server-side resources used by SMS Extension for Contact Form 7
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.49MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.76 | 64.58 ▲31.03 |
Dashboard /wp-admin | 9.24 ▲5.94 | 74.29 ▲28.52 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 75.59 ▲21.91 |
Add New Post /wp-admin/post-new.php | 10.25 ▲4.37 | 111.54 ▲19.71 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 70.18 ▲38.24 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.24 | 58.39 |
Server storage [IO: ▲13.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 245 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for SMS Extension for Contact Form 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲86 | 14.13 ▼0.14 | 1.61 ▲0.06 | 29.38 ▼10.42 |
Dashboard /wp-admin | 2,228 ▲51 | 5.55 ▼0.05 | 98.79 ▼1.62 | 46.71 ▲7.47 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.02 ▲0.05 | 36.46 ▼8.28 | 36.33 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,544 ▲8 | 23.04 ▼0.27 | 624.81 ▼49.30 | 49.48 ▼0.23 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.19 ▼0.03 | 100.63 ▼6.73 | 45.15 ▼2.04 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,101 | 1.65 | 27.87 | 28.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/cf7-sms-extension/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_debug_mode
- widget_recent-posts
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cf7-sms-extension/cf7-sms-extension.php
- > /wp-content/plugins/cf7-sms-extension/views/plugins.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cf7-sms-extension/core/requires.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function kmcf7_sms_extension\\_e() in wp-content/plugins/cf7-sms-extension/views/whatsapp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cf7-sms-extension/lib/requires.php:8
- > PHP Fatal error
Uncaught Error: Class 'Plural' not found in wp-content/plugins/cf7-sms-extension/lib/wordpress_tools/lib/plural/rules/en.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function kmcf7_sms_extension\\get_option() in wp-content/plugins/cf7-sms-extension/views/settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WordPressTools' not found in wp-content/plugins/cf7-sms-extension/views/upgrade.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function kmcf7_sms_extension\\_e() in wp-content/plugins/cf7-sms-extension/views/test.php:5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: contact form 7, contact form, nexmo, sms, twilio...
cf7-sms-extension/cf7-sms-extension.php Passed 13 tests
The main PHP script in "SMS Extension for Contact Form 7" version 1.3.2 is automatically included on every request by WordPress
60 characters long description:
Receive text message notifications when a form is submitted.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected87,586 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 10,776 | 14,373 | 49,563 |
PHP | 148 | 8,639 | 18,176 | 36,256 |
CSS | 18 | 64 | 31 | 1,149 |
Markdown | 3 | 170 | 0 | 590 |
PO File | 1 | 9 | 11 | 28 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 70.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 3 | 4.48% |
▷ Concrete classes | 64 | 95.52% |
▷ Final classes | 0 | 0.00% |
Methods | 1,438 | |
▷ Static methods | 213 | 14.81% |
▷ Public methods | 1,028 | 71.49% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 393 | 27.33% |
Functions | 122 | |
▷ Named functions | 109 | 89.34% |
▷ Anonymous functions | 13 | 10.66% |
Constants | 148 | |
▷ Global constants | 100 | 67.57% |
▷ Class constants | 48 | 32.43% |
▷ Public constants | 48 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 3.99MB with 2.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upgrade4.png | 192.85KB | 56.48KB | ▼ 70.71% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-1.png | 588.56KB | 150.17KB | ▼ 74.48% |
assets/images/messages.png | 485.72KB | 149.33KB | ▼ 69.26% |
assets/images/upgrade3.png | 174.58KB | 47.68KB | ▼ 72.69% |