90% combidesk-twinfield

Code Review | Combidesk - Twinfield voor WooCommerce

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

About plugin

  • Plugin page: combidesk-twinfield
  • 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: Sep 15, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 14
  • Update frequency: every 30.6 days
  • Top authors: combidesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by Combidesk - Twinfield voor WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.25 ▼6.19
Dashboard /wp-admin3.35 ▲0.0447.09 ▼8.18
Posts /wp-admin/edit.php3.40 ▲0.0445.86 ▼0.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.59 ▼4.59
Media Library /wp-admin/upload.php3.27 ▲0.0434.32 ▲1.38

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Combidesk - Twinfield voor WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7514.08 ▼0.321.91 ▲0.0841.79 ▼6.74
Dashboard /wp-admin2,242 ▲685.59 ▲0.0598.71 ▼5.9941.57 ▼4.73
Posts /wp-admin/edit.php2,147 ▲471.98 ▼0.0538.81 ▲0.1134.84 ▼4.79
Add New Post /wp-admin/post-new.php1,547 ▲2125.25 ▲2.11615.24 ▲13.1767.44 ▲16.08
Media Library /wp-admin/upload.php1,448 ▲514.23 ▲0.05100.81 ▼11.2842.60 ▼2.24

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, twinfield

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

The entry point to "Combidesk - Twinfield voor WooCommerce" version 1.18 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin220 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22118115
PO File12738102
JavaScript2002
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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

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