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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.18ms] Passed 4 tests
Server-side resources used by Simple Contact Us Form Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.52 ▼0.97 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.75 ▼2.62 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.13 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.05 ▼12.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.68 ▼0.26 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
gb_simple_contact_us_widget__version |
db_upgraded |
widget_gb_simple_contact_us_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Contact Us Form Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.79 ▼0.49 | 9.33 ▲7.48 | 40.84 ▼5.56 |
Dashboard /wp-admin | 2,197 ▲20 | 5.49 ▼0.16 | 88.01 ▼6.70 | 36.47 ▼5.00 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▼0.00 | 39.43 ▲0.88 | 37.37 ▲3.29 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 22.77 ▼0.23 | 588.21 ▼98.10 | 54.30 ▼23.77 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.17 ▼0.04 | 96.53 ▼6.30 | 42.58 ▼7.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, form, contact-us
simple-contact-us-form-widget/simple-contact-us-widget.php 85% from 13 tests
The primary PHP file in "Simple Contact Us Form Widget" version 2.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-contact-us-form-widget.php" instead of "simple-contact-us-widget.php")
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
No dangerous file extensions were detected789 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 165 | 326 |
CSS | 2 | 1 | 2 | 219 |
PO File | 1 | 37 | 73 | 108 |
Markdown | 2 | 49 | 0 | 59 |
HTML | 1 | 21 | 106 | 56 |
JavaScript | 1 | 4 | 0 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 15 | 83.33% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/colors-red.png | 16.83KB | 7.38KB | ▼ 56.17% |
assets/img/colors-black.png | 14.26KB | 6.56KB | ▼ 54.00% |
assets/img/colors-blue.png | 16.86KB | 7.17KB | ▼ 57.48% |
assets/img/colors-white.png | 12.35KB | 5.36KB | ▼ 56.63% |
assets/img/colors-green.png | 16.72KB | 6.98KB | ▼ 58.24% |