90% storefront-hooks-customizer

Code Review | Storefront Hooks Cutomizer

WordPress plugin Storefront Hooks Cutomizer scored90%from 54 tests.

About plugin

  • Plugin page: storefront-hooks-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 6, 2018
  • Latest release: Jul 6, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: mikeyarce (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,063 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.24ms] Passed 4 tests

A check of server-side resources used by Storefront Hooks Cutomizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.21 ▼4.49
Dashboard /wp-admin3.34 ▼0.0143.92 ▼14.52
Posts /wp-admin/edit.php3.39 ▲0.0347.20 ▲2.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.79 ▼13.17
Media Library /wp-admin/upload.php3.26 ▲0.0333.81 ▼0.79

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Storefront Hooks Cutomizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.83 ▲0.1837.62 ▼1.69
Dashboard /wp-admin2,198 ▲185.61 ▲0.0284.16 ▼10.3937.12 ▼0.39
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0635.31 ▼0.2533.88 ▼5.56
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▲0.08671.10 ▼36.2852.16 ▼1.97
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0695.44 ▼6.3442.73 ▼2.69

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 errors were detected

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
3 plugin tags: storefront, woocommerce, customizer

storefront-hooks-customizer/storefront-hooks-customizer.php Passed 13 tests

The entry point to "Storefront Hooks Cutomizer" version 1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Hook into Storefront from the Customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected228 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42347208
JavaScript20020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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