77% italkereso-hu-nak-automatikus-arlista-frissites

Code Review | Italkereső.hu Woocommerce árlista

WordPress plugin Italkereső.hu Woocommerce árlista scored77%from 54 tests.

About plugin

  • Plugin page: italkereso-hu-nak...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.7
  • WordPress version: 6.3.1
  • First release: May 15, 2017
  • Latest release: May 31, 2021
  • Number of updates: 8
  • Update frequency: every 185.1 days
  • Top authors: italkereso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /740 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 gracefully, with no errors

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

A check of server-side resources used by Italkereső.hu Woocommerce árlista
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.83 ▼4.55
Dashboard /wp-admin3.39 ▲0.0953.27 ▲2.59
Posts /wp-admin/edit.php3.49 ▲0.1353.84 ▲7.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0997.93 ▲7.00
Media Library /wp-admin/upload.php3.31 ▲0.0944.33 ▲10.25
Italkereső /wp-admin/options-general.php?page=italkereso3.2836.98

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Italkereső.hu Woocommerce árlista: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.59 ▼0.711.65 ▼0.4740.80 ▼4.60
Dashboard /wp-admin2,213 ▲254.81 ▼1.0999.40 ▼16.9439.90 ▼6.41
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0639.61 ▲3.6536.90 ▲2.50
Add New Post /wp-admin/post-new.php1,545 ▲618.51 ▼4.70596.16 ▼83.8356.71 ▼12.92
Media Library /wp-admin/upload.php1,386 ▲14.21 ▲0.0595.97 ▼7.3546.06 ▲3.55
Italkereső /wp-admin/options-general.php?page=italkereso8282.0125.3926.58

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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: Call to undefined function add_action() in wp-content/plugins/italkereso-hu-nak-automatikus-arlista-frissites/functions.php:210
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/italkereso-hu-nak-automatikus-arlista-frissites/functions.php:210

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=italkereso
    • > Network (severe)
    wp-content/plugins/woo-italkereso/assets/image/logo-160.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: rlista, italkereso, woocommerce

italkereso-hu-nak-automatikus-arlista-frissites/woo-italkereso.php 69% from 13 tests

"Italkereső.hu Woocommerce árlista" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("italkereso-hu-nak-automatikus-arlista-frissites.php" instead of "woo-italkereso.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0" instead of "2.6.0")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

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 detected271 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31225271

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin