10% simple-wc-order-exportimport

Code Review | Simple WC order Export/Import

WordPress plugin Simple WC order Export/Import scored10%from 54 tests.

About plugin

  • Plugin page: simple-wc-order-e...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Jan 3, 2018
  • Latest release: Jan 25, 2018
  • Number of updates: 31
  • Update frequency: every 0.7 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,224 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-wc-order-exportimport/woo_order_imex.php+504
    Non-static method SWOEI_wc_export_order::SWOEI_instance() should not be called statically

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

Analyzing server-side resources used by Simple WC order Export/Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.38 ▼10.36
Dashboard /wp-admin3.31 ▲0.0044.55 ▼2.39
Posts /wp-admin/edit.php3.36 ▲0.0048.51 ▲0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.28 ▲1.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.03 ▲1.42

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • You have illegally modified 1 file (0.63KB) outside of "wp-content/plugins/simple-wc-order-exportimport/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Simple WC order Export/Import: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.081.87 ▲0.0341.55 ▲1.39
Dashboard /wp-admin2,206 ▲214.82 ▼1.00110.43 ▲4.0942.62 ▲2.71
Posts /wp-admin/edit.php2,092 ▲62.02 ▼0.0244.68 ▲4.8739.90 ▲4.45
Add New Post /wp-admin/post-new.php1,514 ▼2017.48 ▼5.61599.69 ▼103.8755.76 ▼7.09
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0294.29 ▼11.2839.85 ▼2.51

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wc-order-exportimport/inc/ajax_request.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wc-order-exportimport/template/template_product_im_ex.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wc-order-exportimport/template/template_import.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wc-order-exportimport/template/template_export.php:4
    • > PHP Notice
      Trying to get property 'version' of non-object in wp-content/plugins/simple-wc-order-exportimport/template/template_product_im_ex.php on line 5

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

simple-wc-order-exportimport/woo_order_imex.php 85% from 13 tests

"Simple WC order Export/Import" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-wc-order-exportimport.php" instead of "woo_order_imex.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,158 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP729547950
CSS170116
JavaScript127192

PHP code Passed 2 tests

This is a very shot 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.29
Average class complexity34.00
▷ Minimum class complexity23.00
▷ Maximum class complexity51.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods923.08%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin