90% storefront-footer-bar

Code Review | Storefront Footer Bar

WordPress plugin Storefront Footer Bar scored90%from 54 tests.

About plugin

  • Plugin page: storefront-footer...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Aug 27, 2020
  • Number of updates: 10
  • Update frequency: every 195.3 days
  • Top authors: jameskoster (60%)woothemes (40%)wpmuguru (20%)

Code review

54 tests

User reviews

8 reviews

Install metrics

6,000+ active /102,640 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.01MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by Storefront Footer Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.46 ▼6.24
Dashboard /wp-admin3.31 ▲0.0144.95 ▲0.98
Posts /wp-admin/edit.php3.36 ▲0.0146.21 ▲2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.90 ▼11.63
Media Library /wp-admin/upload.php3.23 ▲0.0136.11 ▲2.74

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
storefront-footer-bar-version
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Storefront Footer Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.54 ▼0.701.57 ▼0.5837.72 ▼10.38
Dashboard /wp-admin2,219 ▲275.79 ▲0.9199.56 ▼5.2338.88 ▼6.88
Posts /wp-admin/edit.php2,104 ▲122.02 ▼0.0440.74 ▲1.8137.53 ▲1.90
Add New Post /wp-admin/post-new.php1,546 ▲3223.22 ▲5.74668.17 ▼16.0050.91 ▼3.32
Media Library /wp-admin/upload.php1,407 ▲194.23 ▼0.0298.63 ▼10.9243.47 ▼2.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • storefront-footer-bar-version
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: footer, woocommerce, widgets, ecommerce, storefront

storefront-footer-bar/storefront-footer-bar.php 92% from 13 tests

"Storefront Footer Bar" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.1" instead of "4.1.0")

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 detected234 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP247181192
JavaScript23518
Sass13114
CSS10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin