90% woocommerce-branding

Code Review | WooCommerce Branding

WordPress plugin WooCommerce Branding scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-branding
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.2
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: May 27, 2013
  • Number of updates: 10
  • Update frequency: every 93.0 days
  • Top authors: hchouhan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /5,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.06ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Branding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.21 ▼4.13
Dashboard /wp-admin3.32 ▲0.0144.58 ▼0.55
Posts /wp-admin/edit.php3.37 ▲0.0144.70 ▼3.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.39 ▼4.17
Media Library /wp-admin/upload.php3.24 ▲0.0135.89 ▲4.87
WC Branding /wp-admin/options-general.php?page=dot_wcb3.2131.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Branding
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.171.87 ▲0.1241.28 ▼3.43
Dashboard /wp-admin2,207 ▲195.77 ▲0.9098.50 ▼18.5438.22 ▼8.47
Posts /wp-admin/edit.php2,096 ▲212.01 ▼0.0235.17 ▼6.2831.48 ▼4.14
Add New Post /wp-admin/post-new.php1,536 ▲1022.91 ▼0.34638.83 ▼20.1360.07 ▲3.88
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0192.34 ▼9.0739.04 ▼5.51
WC Branding /wp-admin/options-general.php?page=dot_wcb7771.8832.0325.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

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

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, woocommerce menu, branding, woocommerce icon

woocommerce-branding/woocommerce-branding.php 92% from 13 tests

The primary PHP file in "WooCommerce Branding" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected173 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27677116
JavaScript151229
PO File16828

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin