89% products-extractor-for-woocommerce

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

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

About plugin

  • Plugin page: products-extracto...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Jul 27, 2022
  • Number of updates: 55
  • Update frequency: every 18.1 days
  • Top authors: torobplugin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

9,000+ active /34,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.32ms] Passed 4 tests

An overview of server-side resources used by استخراج محصولات ووکامرس برای ترب - رسمی
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0743.85 ▼2.46
Dashboard /wp-admin3.41 ▲0.0350.67 ▼16.28
Posts /wp-admin/edit.php3.53 ▲0.1367.69 ▲12.28
Add New Post /wp-admin/post-new.php5.99 ▲0.0788.56 ▼3.50
Media Library /wp-admin/upload.php3.34 ▲0.0730.98 ▼3.03

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by استخراج محصولات ووکامرس برای ترب - رسمی
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.73 ▼0.3745.66 ▲0.63
Dashboard /wp-admin2,195 ▲155.55 ▼0.1182.84 ▼9.1538.26 ▼5.30
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0941.40 ▼9.4036.90 ▲0.26
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▼0.14653.70 ▼2.0955.70 ▲1.88
Media Library /wp-admin/upload.php1,394 ▲34.30 ▲0.0599.53 ▼1.0342.34 ▼3.14

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, extract, torob, products, export

products-extractor-for-woocommerce/wcpe.php 85% from 13 tests

The main file in "استخراج محصولات ووکامرس برای ترب - رسمی" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("products-extractor-for-woocommerce.php" instead of "wcpe.php")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 71 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
Good job! No executable or dangerous file extensions detected401 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14081401

PHP code Passed 2 tests

A short 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.38
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity7.56
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin