79% exportex

Code Review | WooCommerce - Exportex

WordPress plugin WooCommerce - Exportex scored79%from 54 tests.

About plugin

  • Plugin page: exportex
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 31, 2022
  • Latest release: Jan 31, 2022
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: smartsoftbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.32ms] Passed 4 tests

Server-side resources used by WooCommerce - Exportex
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.50 ▼0.46
Dashboard /wp-admin3.65 ▲0.3049.57 ▼9.48
Posts /wp-admin/edit.php3.70 ▲0.3447.60 ▼2.52
Add New Post /wp-admin/post-new.php6.16 ▲0.2783.12 ▼16.83
Media Library /wp-admin/upload.php3.51 ▲0.2739.77 ▲6.08
Cron /wp-admin/admin.php?page=exportex_plugin_cron3.4730.29
Dashboard /wp-admin/admin.php?page=exportex_plugin3.6234.69

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
exportex_plugin
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WooCommerce - Exportex: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.21 ▼0.071.79 ▲0.1247.15 ▲6.61
Dashboard /wp-admin2,222 ▲455.65 ▲0.0187.14 ▼2.5843.07 ▲4.86
Posts /wp-admin/edit.php2,124 ▲212.02 ▲0.0733.28 ▼5.5835.23 ▲3.81
Add New Post /wp-admin/post-new.php1,548 ▲1722.98 ▼0.10660.71 ▼7.8761.38 ▲3.45
Media Library /wp-admin/upload.php1,427 ▲334.37 ▲0.1895.96 ▼5.9341.80 ▼0.81
Cron /wp-admin/admin.php?page=exportex_plugin_cron7892.0223.8824.99
Dashboard /wp-admin/admin.php?page=exportex_plugin1,2171.8528.1528.52

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/exportex/exportex.php
  • 27× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/exportex/inc/Tables/Exportex_ModelTable.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Base\\Exportex_BaseController' not found in wp-content/plugins/exportex/inc/Api/Callbacks/Exportex_CronCallbacks.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Export\\Exportex_BaseExport' not found in wp-content/plugins/exportex/inc/Export/Exportex_CategoryExport.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Field\\Exportex_BaseField' not found in wp-content/plugins/exportex/inc/Field/Exportex_OrderField.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Export\\Exportex_BaseExport' not found in wp-content/plugins/exportex/inc/Export/Exportex_ProductExport.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/exportex/inc/Tables/Exportex_FileTable.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Base\\Exportex_BaseController' not found in wp-content/plugins/exportex/inc/Api/Callbacks/Exportex_AdminCallbacks.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Module\\Exportex_BaseModule' not found in wp-content/plugins/exportex/inc/Module/Exportex_SEOPress.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Base\\Exportex_BaseController' not found in wp-content/plugins/exportex/inc/Base/Exportex_SettingsLinks.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Exportex\\Export\\Exportex_BaseExport' not found in wp-content/plugins/exportex/inc/Export/Exportex_OrderExport.php:15

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: automatic, office, orders, categories, export...

exportex/exportex.php Passed 13 tests

Analyzing the main PHP file in "WooCommerce - Exportex" version 1.0.0
65 characters long description:
Exportex allows you to export almost all entity from Woocommerce.

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 detected5,119 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP537807684,893
JavaScript43977218
JSON1005
CSS312453

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.73
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes41
▷ Abstract classes37.32%
▷ Concrete classes3892.68%
▷ Final classes25.26%
Methods371
▷ Static methods287.55%
▷ Public methods34392.45%
▷ Protected methods123.23%
▷ Private methods164.31%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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