78% elogo-wc-icin-fatura-islemleri-ucretsiz

Code Review | Elogo İçin Fatura İşlemleri WooCommerce (Ücretsiz)

WordPress plugin Elogo İçin Fatura İşlemleri WooCommerce (Ücretsiz) scored78%from 54 tests.

About plugin

  • Plugin page: elogo-wc-icin-fat...
  • Plugin version: 1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2023
  • Latest release: May 18, 2023
  • Number of updates: 4
  • Update frequency: every 12.0 days
  • Top authors: hasanyuksektepe (100%)(no author) (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /169 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.28MB] [CPU: ▼5.21ms] Passed 4 tests

Analyzing server-side resources used by Elogo İçin Fatura İşlemleri WooCommerce (Ücretsiz)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2741.42 ▼1.62
Dashboard /wp-admin3.62 ▲0.3249.13 ▼5.08
Posts /wp-admin/edit.php3.68 ▲0.3250.57 ▼2.79
Add New Post /wp-admin/post-new.php6.17 ▲0.2897.87 ▼5.15
Media Library /wp-admin/upload.php3.48 ▲0.2640.08 ▼7.81

Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/elogo_doc/e-Logo Webservis D\303\266k\303\274man2.pdf"
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Elogo İçin Fatura İşlemleri WooCommerce (Ücretsiz): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.43 ▼0.508.27 ▲6.7339.89 ▼6.28
Dashboard /wp-admin2,202 ▲225.67 ▲0.0985.25 ▼8.3040.92 ▲0.30
Posts /wp-admin/edit.php2,104 ▲72.00 ▲0.0539.42 ▼2.8435.10 ▼0.23
Add New Post /wp-admin/post-new.php1,540 ▲518.37 ▲0.35625.00 ▼23.6975.07 ▲3.76
Media Library /wp-admin/upload.php1,404 ▲14.25 ▲0.1398.81 ▼17.6746.44 ▲2.57

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/public/partials/wc-elogo-fatura-public-display.php
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/giden_fatura_listeleme.php on line 5
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/musteri_bilgisi_getir.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/admin/partials/wc-elogo-fatura-settings.php:91
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/gelen_fatura_listeleme.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Hasokeyk\\Elogo\\Models\\toArray' not found in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/src/Elogo/Models/ElogoBase64BinaryData.php:5
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/giden_fatura_listeleme.php on line 5
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/musteri_bilgisi_getir.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Hasokeyk\\Elogo\\Models\\toArray' not found in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/src/Elogo/Models/ElogoLogin.php:5
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/fatura_bilgisi_alma.php on line 5
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/elogo-wc-icin-fatura-islemleri-ucretsiz/vendor/hasokeyk/elogo/examples/earsiv_kesme.php on line 9

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 93% 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
5 plugin tags: fatura, logo, woocoomerce logo, elogo, invoice

elogo-wc-icin-fatura-islemleri-ucretsiz/wc-elogo-fatura.php 85% from 13 tests

"Elogo İçin Fatura İşlemleri WooCommerce (Ücretsiz)" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("elogo-wc-icin-fatura-islemleri-ucretsiz.php" instead of "wc-elogo-fatura.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin12,269 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
XSLT238658,128
PHP411,0071,7033,988
JSON30095
JavaScript218244
CSS2007
Markdown1307

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.92
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods294
▷ Static methods217.14%
▷ Public methods27994.90%
▷ Protected methods00.00%
▷ Private methods155.10%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin