83% furgefutar-hu-integracio

Code Review | Pactic.hu integráció

WordPress plugin Pactic.hu integráció scored83%from 54 tests.

About plugin

  • Plugin page: furgefutar-hu-int...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2018
  • Latest release: Oct 11, 2022
  • Number of updates: 52
  • Update frequency: every 32.3 days
  • Top authors: infopartner (55.77%)furgefutarhu (46.15%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,182 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
Install script ran successfully

Server metrics [RAM: ▼0.52MB] [CPU: ▼15.74ms] Passed 4 tests

An overview of server-side resources used by Pactic.hu integráció
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.91 ▲1.71
Dashboard /wp-admin3.46 ▲0.1654.62 ▲4.94
Posts /wp-admin/edit.php3.58 ▲0.2249.59 ▼6.48
Add New Post /wp-admin/post-new.php3.31 ▼2.5837.48 ▼61.41
Media Library /wp-admin/upload.php3.39 ▲0.1638.86 ▲3.24

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pactic.hu integráció
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15914.39 ▼0.2131.48 ▲29.7143.05 ▲4.02
Dashboard /wp-admin2,206 ▲295.54 ▲0.0185.88 ▼16.7143.89 ▼10.55
Posts /wp-admin/edit.php2,111 ▲142.02 ▲0.0037.71 ▲0.6434.06 ▲1.71
Add New Post /wp-admin/post-new.php45 ▼1,4900.42 ▼17.570.08 ▼633.2412.37 ▼52.67
Media Library /wp-admin/upload.php1,411 ▲144.26 ▲0.05104.71 ▲2.0366.10 ▲23.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/furgefutar-hu-integracio/furgefutar-integracio.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/furgefutar-hu-integracio/includes/csomagpont.php:3
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/furgefutar-hu-integracio/includes/tcpdf/tcpdf.php on line 17784
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/furgefutar-hu-integracio/includes/furgefutar.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

furgefutar-hu-integracio/furgefutar-integracio.php 85% from 13 tests

"Pactic.hu integráció" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("furgefutar-hu-integracio.php" instead of "furgefutar-integracio.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,225 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP372,75612,59249,023
CSS213220417
JavaScript235554404
PO File1170197381

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,353)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity262.23
▷ Minimum class complexity1.00
▷ Maximum class complexity4,353.00
Average method complexity9.71
▷ Minimum method complexity1.00
▷ Maximum method complexity499.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods780
▷ Static methods11014.10%
▷ Public methods47761.15%
▷ Protected methods30138.59%
▷ Private methods20.26%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants122
▷ Global constants10888.52%
▷ Class constants1411.48%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/markercluster2.png3.18KB2.36KB▼ 25.77%
images/markercluster3.png3.86KB3.06KB▼ 20.80%
images/nyomkovetes_ikon.png0.72KB0.77KB0.00%
images/pactic_ikon_2.png6.27KB3.12KB▼ 50.18%
images/markercluster4.png5.57KB4.23KB▼ 24.08%