90% info-blocks-for-woocommerce

Code Review | Info Blocks for WooCommerce

WordPress plugin Info Blocks for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: info-blocks-for-w...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2019
  • Latest release: Sep 26, 2023
  • Number of updates: 19
  • Update frequency: every 89.1 days
  • Top authors: algoritmika (84.21%)wpcodefactory (21.05%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Info Blocks for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.09 ▲0.87
Dashboard /wp-admin3.32 ▲0.0254.99 ▲8.66
Posts /wp-admin/edit.php3.37 ▲0.0144.79 ▼2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.59 ▼6.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.36 ▼0.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Info Blocks for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.74 ▲0.2443.67 ▲0.52
Dashboard /wp-admin2,195 ▲185.56 ▼0.1683.68 ▼12.4938.90 ▼3.73
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0033.49 ▼3.1934.57 ▼2.65
Add New Post /wp-admin/post-new.php1,535 ▲418.34 ▼4.76632.50 ▲5.9170.73 ▲11.33
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0498.33 ▼1.8340.91 ▼3.18

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, info, info block, woo commerce

info-blocks-for-woocommerce/info-blocks-for-woocommerce.php Passed 13 tests

The main PHP file in "Info Blocks for WooCommerce" ver. 1.4.3 adds more information about the plugin and also serves as the entry point for this plugin
28 characters long description:
Info blocks for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin790 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP799439790

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity22.60
▷ Minimum class complexity4.00
▷ Maximum class complexity71.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods46
▷ Static methods12.17%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected