89% bambora-apac-online-plug-in-for-woocommerce

Code Review | Bambora APAC Online Plug-in for WooCommerce.

WordPress plugin Bambora APAC Online Plug-in for WooCommerce. scored89%from 54 tests.

About plugin

  • Plugin page: bambora-apac-onli...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: May 9, 2018
  • Latest release: Jun 10, 2021
  • Number of updates: 28
  • Update frequency: every 43.0 days
  • Top authors: bambora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Bambora APAC Online Plug-in for WooCommerce.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.03 ▼5.95
Dashboard /wp-admin3.31 ▲0.0147.64 ▲2.67
Posts /wp-admin/edit.php3.36 ▲0.0146.23 ▼1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.27 ▼22.26
Media Library /wp-admin/upload.php3.23 ▲0.0134.01 ▼0.64

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bambora APAC Online Plug-in for WooCommerce.
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.63 ▲0.231.82 ▲0.1538.91 ▼1.53
Dashboard /wp-admin2,203 ▲515.83 ▲0.1399.74 ▼7.2240.04 ▼4.43
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0139.60 ▼3.8034.30 ▼5.32
Add New Post /wp-admin/post-new.php1,535 ▼723.17 ▲4.88600.07 ▼10.1656.13 ▼0.00
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0597.55 ▼5.1241.97 ▼4.45

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bambora-apac-online-plug-in-for-woocommerce === )
You can look at the official readme.txt

bambora-apac-online-plug-in-for-woocommerce/bambora-apac-online.php 85% from 13 tests

The entry point to "Bambora APAC Online Plug-in for WooCommerce." version 1.2.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("bambora-apac-online-plug-in-for-woocommerce.php" instead of "bambora-apac-online.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin10,628 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS32781818,815
PHP45032911,660
JavaScript33017151
Markdown1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity64.33
▷ Minimum class complexity4.00
▷ Maximum class complexity172.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bambora-logo.png6.24KB2.99KB▼ 52.07%