Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.57ms] Passed 4 tests
A check of server-side resources used by Storefront Homepage Contact Section
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.97 ▼1.95 |
Dashboard /wp-admin | 3.37 ▲0.06 | 55.55 ▲3.51 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.48 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.37 ▼15.08 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.85 ▲1.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
shcs_activation_notice |
db_upgraded |
storefront-homepage-contact-section-version |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Storefront Homepage Contact Section
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.23 ▼1.07 | 1.70 ▼0.28 | 44.62 ▲0.16 |
Dashboard /wp-admin | 2,222 ▲40 | 4.82 ▼1.06 | 103.03 ▼2.70 | 36.74 ▼5.39 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.02 ▼0.02 | 36.42 ▲0.56 | 36.02 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 23.10 ▲0.39 | 663.33 ▲9.17 | 50.83 ▼3.68 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.23 ▲0.07 | 107.58 ▲3.87 | 50.37 ▲2.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- storefront-homepage-contact-section-version
- widget_recent-comments
- db_upgraded
- shcs_activation_notice
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ecommerce, woocommerce, email, map, storefront...
storefront-homepage-contact-section/storefront-homepage-contact-section.php Passed 13 tests
"Storefront Homepage Contact Section" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Adds a simple contact section to your Storefront powered site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin421 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 179 | 250 |
Sass | 1 | 20 | 2 | 101 |
CSS | 1 | 8 | 0 | 70 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin