90% storefront-homepage-contact-section

Code Review | Storefront Homepage Contact Section

WordPress plugin Storefront Homepage Contact Section scored90%from 54 tests.

About plugin

  • Plugin page: storefront-homepa...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 5, 2016
  • Latest release: Aug 27, 2020
  • Number of updates: 8
  • Update frequency: every 208.1 days
  • Top authors: woothemes (87.5%)wpmuguru (25%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /63,867 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.97 ▼1.95
Dashboard /wp-admin3.37 ▲0.0655.55 ▲3.51
Posts /wp-admin/edit.php3.42 ▲0.0651.48 ▲1.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.37 ▼15.08
Media Library /wp-admin/upload.php3.29 ▲0.0634.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.23 ▼1.071.70 ▼0.2844.62 ▲0.16
Dashboard /wp-admin2,222 ▲404.82 ▼1.06103.03 ▼2.7036.74 ▼5.39
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.0236.42 ▲0.5636.02 ▲1.31
Add New Post /wp-admin/post-new.php1,544 ▲223.10 ▲0.39663.33 ▲9.1750.83 ▼3.68
Media Library /wp-admin/upload.php1,407 ▲194.23 ▲0.07107.58 ▲3.8750.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:
LanguageFilesBlank linesComment linesLines of code
PHP262179250
Sass1202101
CSS18070

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 code0.32
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods15
▷ Static methods213.33%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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