62% arukereso-megbizhato-bolt-integracio

Code Review | Árukereső - Megbízható bolt integráció

WordPress plugin Árukereső - Megbízható bolt integráció scored62%from 54 tests.

About plugin

  • Plugin page: arukereso-megbizh...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 31, 2016
  • Latest release: Dec 31, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ricomester (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,673 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.24MB] [CPU: ▼50.00ms] Passed 4 tests

An overview of server-side resources used by Árukereső - Megbízható bolt integráció
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.18 ▼27.42
Dashboard /wp-admin2.78 ▼0.5715.15 ▼55.49
Posts /wp-admin/edit.php2.78 ▼0.5816.45 ▼38.70
Add New Post /wp-admin/post-new.php2.78 ▼3.1116.66 ▼78.39
Media Library /wp-admin/upload.php2.78 ▼0.4513.49 ▼24.38
Megbízható bolt /wp-admin/options-general.php?page=wc-arukereso-megbizthato-bolt2.7816.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
arukereso_webapi_kulcs

Browser metrics Passed 4 tests

Checking browser requirements for Árukereső - Megbízható bolt integráció
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.31 ▼0.221.70 ▲0.1445.33 ▲4.76
Dashboard /wp-admin2,204 ▲245.62 ▲0.0287.03 ▼7.7739.85 ▲0.57
Posts /wp-admin/edit.php2,088 ▼121.97 ▼0.0433.59 ▼6.4133.41 ▼4.42
Add New Post /wp-admin/post-new.php1,533 ▲723.17 ▲0.04629.39 ▼16.5051.27 ▼3.53
Media Library /wp-admin/upload.php1,406 ▲94.36 ▲0.1695.65 ▼3.6140.95 ▼1.39
Megbízható bolt /wp-admin/options-general.php?page=wc-arukereso-megbizthato-bolt8032.0325.0536.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/arukereso-megbizhato-bolt-integracio/public/class-wc-arukereso-megbizthato-bolt-public.php+70
    Undefined variable: webapikulcs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • arukereso_webapi_kulcs
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wc-arukereso-megbizthato-bolt
    • > Notice in wp-content/plugins/arukereso-megbizhato-bolt-integracio/public/class-wc-arukereso-megbizthato-bolt-public.php+70
    Undefined variable: webapikulcs
    • > GET request to /wp-admin/options-general.php?page=wc-arukereso-megbizthato-bolt
    • > Notice in wp-content/plugins/arukereso-megbizhato-bolt-integracio/admin/partials/wc-arukereso-megbizthato-bolt-admin-display.php+26
    Trying to access array offset on value of type bool

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/arukereso-megbizhato-bolt-integracio/public/partials/wc-arukereso-megbizthato-bolt-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/arukereso-megbizhato-bolt-integracio/admin/partials/wc-arukereso-megbizthato-bolt-admin-display.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arukereso-megbizhato-bolt-integracio/public/megbizhato-bolt.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Soon) image missing
The official readme.txt might help

arukereso-megbizhato-bolt-integracio/wc-arukereso-megbizthato-bolt.php 85% from 13 tests

The entry point to "Árukereső - Megbízható bolt integráció" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("arukereso-megbizhato-bolt-integracio.php" instead of "wc-arukereso-megbizthato-bolt.php")

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
Everything looks great! No dangerous files found in this plugin401 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13164558352
CSS21643
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2982.86%
▷ Protected methods12.86%
▷ Private methods514.29%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin