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.04MB] [CPU: ▼2.55ms] Passed 4 tests
Analyzing server-side resources used by USMS-GH Contact Form 7 SMS Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.08 ▲0.57 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.74 ▼3.64 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.46 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.24 ▼0.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.97 ▼4.68 |
/wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page | 3.29 | 334.03 |
Sms Integration /wp-admin/admin.php?page=cf7isi-options | 3.27 | 31.26 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by USMS-GH Contact Form 7 SMS Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.35 ▲0.10 | 1.61 ▼0.26 | 48.15 ▲5.88 |
Dashboard /wp-admin | 2,203 ▲23 | 5.65 ▼0.01 | 93.83 ▲5.87 | 38.52 ▲0.05 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.05 ▲0.06 | 42.60 ▼1.28 | 35.35 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.79 ▼0.83 | 728.07 ▼70.78 | 52.40 ▼11.18 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.22 ▲0.08 | 114.11 ▼55.77 | 48.42 ▼23.92 |
/wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page | 934 | 4.35 | 96.75 | 43.05 |
Sms Integration /wp-admin/admin.php?page=cf7isi-options | 904 | 2.90 | 38.63 | 23.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/usmsgh-contact-form-7-sms-notification/template/cf7-conf-footer.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/usmsgh-contact-form-7-sms-notification/admin/class-table-listing.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/usmsgh-contact-form-7-sms-notification/template/cf7-conf-header.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/usmsgh-contact-form-7-sms-notification/admin/class-table-listing.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/usmsgh-contact-form-7-sms-notification/template/cf7-template.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/usmsgh-contact-form-7-sms-notification/admin/class-table-listing.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/usmsgh-contact-form-7-sms-notification/template/welcome-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/usmsgh-contact-form-7-sms-notification/template/cf7-settings.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page
- > Javascript (severe) in unknown
/wp-admin/js/common.min.js?ver=6.3.1 1:21 Uncaught TypeError: W is not a function
- > GET request to /wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page
- > Javascript (severe) in unknown
/wp-admin/js/svg-painter.js?ver=6.3.1 14:1 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page
- > Javascript (severe) in unknown
/wp-includes/js/heartbeat.min.js?ver=6.3.1 1:73 Uncaught TypeError: f is not a function
- > GET request to /wp-admin/index.php?page=cf7-sms-integration-abs-welcome-page
- > Javascript (severe) in unknown
/wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:331 Uncaught TypeError: i is not a function
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
usmsgh-contact-form-7-sms-notification/index.php 77% from 13 tests
This is the main PHP file of "USMS-GH Contact Form 7 SMS Notification" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("usmsgh-contact-form-7-sms-notification.php" instead of "index.php")
- Git Repository: An alternative Git repository was detected
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,674 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 88 | 86 | 2,614 |
PHP | 24 | 466 | 497 | 1,787 |
XML | 6 | 0 | 0 | 119 |
JSON | 3 | 0 | 0 | 80 |
Markdown | 1 | 29 | 0 | 73 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 14.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 17 | 12.78% |
▷ Public methods | 119 | 89.47% |
▷ Protected methods | 3 | 2.26% |
▷ Private methods | 11 | 8.27% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 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.44MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 157.00KB | 53.29KB | ▼ 66.06% |
screenshot-1.png | 104.84KB | 25.69KB | ▼ 75.50% |
screenshot-2.png | 192.06KB | 51.67KB | ▼ 73.10% |