84% 1tool-to-wc-integration

Code Review | 1Tool to WooCommerce / Wordpress

WordPress plugin 1Tool to WooCommerce / Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: 1tool-to-wc-integ...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: May 6, 2022
  • Latest release: Nov 2, 2023
  • Number of updates: 22
  • Update frequency: every 24.9 days
  • Top authors: mkoerbler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /883 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.10ms] Passed 4 tests

A check of server-side resources used by 1Tool to WooCommerce / Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0943.20 ▲1.03
Dashboard /wp-admin3.41 ▲0.0649.48 ▼14.34
Posts /wp-admin/edit.php3.46 ▲0.1044.85 ▼6.75
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.92 ▼23.88
Media Library /wp-admin/upload.php3.33 ▲0.1037.61 ▲0.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for 1Tool to WooCommerce / Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.18 ▼0.211.78 ▲0.0941.40 ▼2.55
Dashboard /wp-admin2,221 ▲475.64 ▲0.1096.84 ▲9.0644.74 ▲3.86
Posts /wp-admin/edit.php2,123 ▲232.06 ▲0.0836.58 ▼3.6135.03 ▼1.94
Add New Post /wp-admin/post-new.php1,546 ▲2023.74 ▲0.65679.05 ▼89.9553.20 ▼12.07
Media Library /wp-admin/upload.php1,417 ▲144.23 ▲0.0497.78 ▼6.9840.66 ▼4.38

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1tool-to-wc-integration/1tool-order.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: 1tool woocommerce

1tool-to-wc-integration/1tool-integration.php 85% from 13 tests

"1Tool to WooCommerce / Wordpress" version 1.0.2'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 217 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("1tool-to-wc-integration.php" instead of "1tool-integration.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
Good job! No executable or dangerous file extensions detected657 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4103243592
JavaScript16151
CSS10114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity5.00
▷ Maximum class complexity25.00
Average method complexity5.00
▷ Minimum method complexity2.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin