90% itbazar-products-exporter

Code Review | استخراج محصولات ووکامرس برای آی تی بازار

WordPress plugin استخراج محصولات ووکامرس برای آی تی بازار scored90%from 54 tests.

About plugin

  • Plugin page: itbazar-products-...
  • Plugin version: 1.9.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Apr 11, 2022
  • Number of updates: 69
  • Update frequency: every 8.9 days
  • Top authors: itbazar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,684 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by استخراج محصولات ووکامرس برای آی تی بازار
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.84 ▼2.79
Dashboard /wp-admin3.40 ▲0.0648.25 ▼19.08
Posts /wp-admin/edit.php3.52 ▲0.1653.05 ▲1.68
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.97 ▼7.23
Media Library /wp-admin/upload.php3.33 ▲0.1039.20 ▼0.17

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

How much does this plugin use your filesystem and database?
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/itbazar-products-exporter/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for استخراج محصولات ووکامرس برای آی تی بازار
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.30 ▼1.281.74 ▲0.0439.37 ▼4.85
Dashboard /wp-admin2,215 ▲125.85 ▼0.0599.41 ▼1.5942.02 ▼3.32
Posts /wp-admin/edit.php2,103 ▼02.04 ▲0.0740.04 ▼5.9636.27 ▲0.15
Add New Post /wp-admin/post-new.php1,545 ▲1922.76 ▲5.30646.93 ▼21.9353.97 ▲0.32
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.0296.06 ▼3.6740.80 ▼4.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: itbazar, json, export, woocommerce, products

itbazar-products-exporter/itbazar-products-exporter.php Passed 13 tests

The primary PHP file in "استخراج محصولات ووکامرس برای آی تی بازار" version 1.9.1 is used by WordPress to initiate all plugin functionality
74 characters long description:
استخراج محصولات ووکامرس برای آی تی بازار

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin577 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111776577

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity122.00
▷ Minimum class complexity122.00
▷ Maximum class complexity122.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1045.45%
▷ Protected methods29.09%
▷ Private methods1045.45%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin