78% market-exporter

Code Review | Market Exporter

WordPress plugin Market Exporter scored78%from 54 tests.

About plugin

  • Plugin page: market-exporter
  • Plugin version: 2.0.19
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Jul 8, 2023
  • Number of updates: 81
  • Update frequency: every 34.3 days
  • Top authors: vanyukov (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

1,000+ active /37,189 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.01MB] [CPU: ▼5.53ms] Passed 4 tests

This is a short check of server-side resources used by Market Exporter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.65 ▼1.50
Dashboard /wp-admin3.31 ▼0.0448.02 ▼13.56
Posts /wp-admin/edit.php3.36 ▲0.0050.63 ▼3.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.41 ▲1.74
Media Library /wp-admin/upload.php3.23 ▲0.0035.83 ▼3.69
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius3.0022.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 209 new files
Database: no new tables, 10 new options
New WordPress options
wooya_settings
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
fs_accounts
fs_debug_mode
fs_active_plugins
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Market Exporter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.002.02 ▲0.1740.17 ▲0.52
Dashboard /wp-admin2,192 ▲185.57 ▼0.0991.23 ▼2.2238.00 ▼3.96
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0338.36 ▼3.3136.14 ▲1.08
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▼0.39668.69 ▼26.7554.73 ▲2.70
Media Library /wp-admin/upload.php1,394 ▼34.25 ▲0.04104.20 ▲0.3042.48 ▼3.17
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius280.420.093.67

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • fs_accounts
    • theysaidso_admin_options
    • db_upgraded
    • fs_debug_mode
    • can_compress_scripts
    • fs_active_plugins
    • widget_theysaidso_widget
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/market-exporter/includes/class-restapi.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Wooya\\Includes\\Attributes' not found in wp-content/plugins/market-exporter/includes/class-generator.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: export, woocommerce, market, yml, yandex market

market-exporter/market-exporter.php Passed 13 tests

The main file in "Market Exporter" v. 2.0.19 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Market Exporter integration suite.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin35,880 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,60918,39534,978
PO File192174347
Markdown1680214
JavaScript53461196
CSS141319108
SVG50037

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.68
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods1,351
▷ Static methods21615.99%
▷ Public methods92368.32%
▷ Protected methods282.07%
▷ Private methods40029.61%
Functions103
▷ Named functions9895.15%
▷ Anonymous functions54.85%
Constants153
▷ Global constants10266.67%
▷ Class constants5133.33%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%