83% arukereso-for-woocommerce

Code Review | Árukereső for Woocommerce

WordPress plugin Árukereső for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: arukereso-for-woo...
  • Plugin version: 2.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2017
  • Latest release: Jul 18, 2023
  • Number of updates: 32
  • Update frequency: every 73.5 days
  • Top authors: oaron (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /7,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲4.14ms] Passed 4 tests

A check of server-side resources used by Árukereső for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1943.65 ▼0.99
Dashboard /wp-admin3.49 ▲0.1956.09 ▲4.03
Posts /wp-admin/edit.php3.59 ▲0.2355.39 ▲6.03
Add New Post /wp-admin/post-new.php6.07 ▲0.19104.02 ▲7.50
Media Library /wp-admin/upload.php3.42 ▲0.1945.83 ▲12.24
Árukereső /wp-admin/options-general.php?page=arukereso3.3842.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Árukereső for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.23 ▼0.142.22 ▲0.2442.84 ▼1.28
Dashboard /wp-admin2,204 ▲305.61 ▼0.0694.32 ▼3.7140.81 ▼2.16
Posts /wp-admin/edit.php2,109 ▲91.95 ▼0.0440.59 ▲6.1839.24 ▲2.47
Add New Post /wp-admin/post-new.php1,545 ▲1918.18 ▼4.79626.01 ▼38.1961.19 ▼2.60
Media Library /wp-admin/upload.php1,409 ▲64.21 ▲0.0198.10 ▼2.9545.92 ▲1.29
Árukereső /wp-admin/options-general.php?page=arukereso8672.0226.2527.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/arukereso-for-woocommerce/includes/class-waruk_trustedShop.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/arukereso-for-woocommerce/includes/class-waruk_feedGenerator.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arukereso-for-woocommerce/includes/class-waruk_wcFields.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arukereso-for-woocommerce/includes/class-waruk_adminDashboard.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arukereso-for-woocommerce/includes/class-waruk_adminDashboard.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: woocommerce, arukereso

arukereso-for-woocommerce/woo-arukereso.php 77% from 13 tests

"Árukereső for Woocommerce" version 2.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/lang")
  • Main file name: The principal plugin file should be the same as the plugin slug ("arukereso-for-woocommerce.php" instead of "woo-arukereso.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected825 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP93556825

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.25
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods4095.24%
▷ Protected methods12.38%
▷ Private methods12.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin