90% combidesk-moneybird

Code Review | Combidesk - Moneybird voor WooCommerce

WordPress plugin Combidesk - Moneybird voor WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: combidesk-moneybird
  • Plugin version: 1.18
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Nov 16, 2023
  • Number of updates: 31
  • Update frequency: every 35.1 days
  • Top authors: combidesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,768 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.82ms] Passed 4 tests

An overview of server-side resources used by Combidesk - Moneybird voor WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.07 ▼5.56
Dashboard /wp-admin3.32 ▼0.0344.56 ▼16.69
Posts /wp-admin/edit.php3.37 ▲0.0146.18 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.38 ▼19.40
Media Library /wp-admin/upload.php3.24 ▲0.0131.82 ▼1.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Combidesk - Moneybird voor WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9014.17 ▼0.181.57 ▼0.1535.90 ▼6.90
Dashboard /wp-admin2,239 ▲655.50 ▼0.1588.64 ▼12.8942.44 ▼2.86
Posts /wp-admin/edit.php2,147 ▲472.00 ▲0.0542.06 ▲5.9235.90 ▼0.66
Add New Post /wp-admin/post-new.php1,536 ▲1023.63 ▲0.80630.67 ▼36.5954.19 ▼0.51
Media Library /wp-admin/upload.php1,447 ▲504.26 ▲0.0895.79 ▼10.1143.04 ▼1.55

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: woocommerce, moneybird

combidesk-moneybird/combidesk-moneybird.php 92% from 13 tests

This is the main PHP file of "Combidesk - Moneybird voor WooCommerce" version 1.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin175 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22318103
PO File1131569
JavaScript2002
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin