89% datafeedr-woocommerce-importer

Code Review | Datafeedr WooCommerce Importer

WordPress plugin Datafeedr WooCommerce Importer scored89%from 54 tests.

About plugin

  • Plugin page: datafeedr-woocomm...
  • Plugin version: 1.3.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8+
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Nov 10, 2023
  • Number of updates: 324
  • Update frequency: every 11.0 days
  • Top authors: datafeedr.com (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

5,000+ active /125,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.43MB] [CPU: ▼2.68ms] Passed 4 tests

Server-side resources used by Datafeedr WooCommerce Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4635.59 ▼6.49
Dashboard /wp-admin3.76 ▲0.4646.32 ▼2.06
Posts /wp-admin/edit.php3.82 ▲0.4652.57 ▲5.92
Add New Post /wp-admin/post-new.php6.28 ▲0.4094.52 ▼5.56
Media Library /wp-admin/upload.php3.63 ▲0.4037.18 ▲3.41
WC Importer /wp-admin/admin.php?page=dfrpswc_options3.5930.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
dfrpswc_version

Browser metrics Passed 4 tests

A check of browser resources used by Datafeedr WooCommerce Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.69 ▲0.461.69 ▲0.0235.54 ▼7.98
Dashboard /wp-admin2,222 ▲485.61 ▼0.0194.84 ▼9.9439.74 ▼6.88
Posts /wp-admin/edit.php2,130 ▲302.09 ▲0.0840.65 ▲3.1237.48 ▲3.43
Add New Post /wp-admin/post-new.php1,554 ▲2823.25 ▼0.11584.58 ▼76.1353.58 ▼1.98
Media Library /wp-admin/upload.php1,427 ▲274.18 ▼0.04101.08 ▲6.2942.37 ▲1.85
WC Importer /wp-admin/admin.php?page=dfrpswc_options9342.1723.5737.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • dfrpswc_version
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
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 smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tested up to: Version format is invalid
The official readme.txt is a good inspiration

datafeedr-woocommerce-importer/datafeedr-woocommerce-importer.php 85% from 13 tests

The primary PHP file in "Datafeedr WooCommerce Importer" version 1.3.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please keep the plugin description shorter than 140 characters (currently 365 characters long)

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
No dangerous file extensions were detected1,989 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP106461,5391,989

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.25
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods3252.46%
▷ Protected methods813.11%
▷ Private methods2134.43%
Functions81
▷ Named functions7997.53%
▷ Anonymous functions22.47%
Constants9
▷ Global constants9100.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