89% woocommerce-bgn

Code Review | WooCommerce BGN

WordPress plugin WooCommerce BGN scored 89% from 54 tests.

About plugin

  • Plugin page: woocommerce-bgn
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Jan 12, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: ninio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by WooCommerce BGN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.45 ▲0.34
Dashboard /wp-admin3.31 ▲0.0144.70 ▼6.46
Posts /wp-admin/edit.php3.36 ▲0.0146.52 ▼0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.18 ▼11.37
Media Library /wp-admin/upload.php3.24 ▲0.0130.74 ▼6.05

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce BGN
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.254.28 ▲2.5344.05 ▼3.65
Dashboard /wp-admin2,209 ▲214.82 ▼1.1096.55 ▼6.8640.42 ▼2.54
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0134.67 ▼1.8931.81 ▼1.10
Add New Post /wp-admin/post-new.php1,520 ▼2223.15 ▲5.23632.38 ▲33.7056.73 ▲2.31
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0694.88 ▼20.3543.51 ▼3.26

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === woocommerce-bgn === )
The official readme.txt is a good inspiration

woocommerce-bgn/wc-bgn.php 85% from 13 tests

"WooCommerce BGN" version 0.01's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-bgn.php" instead of "wc-bgn.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2153724

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin