10% entego-n11

Code Review | Entego N11 Entegrasyon Eklentisi

WordPress plugin Entego N11 Entegrasyon Eklentisi scored10%from 54 tests.

About plugin

  • Plugin page: entego-n11
  • Plugin version: 1.0.8.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: May 12, 2020
  • Number of updates: 42
  • Update frequency: every 1.3 days
  • Top authors: entego (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,771 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/entego-n11/entego-n11.php+57
    Non-static method Entego_N11_Activator::activate() should not be called statically

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.82ms] Passed 4 tests

Analyzing server-side resources used by Entego N11 Entegrasyon Eklentisi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2443.52 ▲3.13
Dashboard /wp-admin3.57 ▲0.2255.66 ▼6.46
Posts /wp-admin/edit.php3.68 ▲0.3257.25 ▲5.70
Add New Post /wp-admin/post-new.php6.16 ▲0.2885.09 ▼20.16
Media Library /wp-admin/upload.php3.49 ▲0.2640.14 ▲4.23
N11 Eklentisi Kullanım Kılavuzu /wp-admin/admin.php?page=entego_n11_help3.4734.78
N11 Ürün Gönderme Sonuçları /wp-admin/admin.php?page=entego_n11_sonuclar3.4540.45
N11 Siparişler /wp-admin/admin.php?page=entego_n11_siparisler3.52219.57
Ayarlar /wp-admin/admin.php?page=entego_n11_ayarlar3.51196.17
Destek Talebi Gönder /wp-admin/admin.php?page=entego_n11_destek3.4636.24
N11 Kategoriler /wp-admin/admin.php?page=entego_n11_kategoriler3.4534.80

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: 3 new tables, 9 new options
New tables
wp_entego_n11_kategoriler
wp_entego_n11_hatalar
wp_entego_n11_cron_urunler
New WordPress options
widget_recent-comments
entego_n11_wizard_bitirme_notu
theysaidso_admin_options
entego_n11_aktiflestimi
recovery_mode_email_last_sent
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Entego N11 Entegrasyon Eklentisi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13313.72 ▼0.691.79 ▲0.0942.94 ▲1.12
Dashboard /wp-admin2,303 ▲1265.12 ▼0.58101.87 ▲14.6242.05 ▼0.63
Posts /wp-admin/edit.php2,206 ▲1062.59 ▲0.5842.90 ▲3.3537.48 ▲3.46
Add New Post /wp-admin/post-new.php1,611 ▲8523.79 ▲6.24684.56 ▲16.4354.94 ▼3.06
Media Library /wp-admin/upload.php1,508 ▲1054.47 ▲0.26106.81 ▲5.7543.69 ▼1.46
N11 Eklentisi Kullanım Kılavuzu /wp-admin/admin.php?page=entego_n11_help1,1352.2035.0351.31
N11 Ürün Gönderme Sonuçları /wp-admin/admin.php?page=entego_n11_sonuclar1,1242.1335.9432.02
N11 Siparişler /wp-admin/admin.php?page=entego_n11_siparisler7711.7219.2821.86
Ayarlar /wp-admin/admin.php?page=entego_n11_ayarlar7731.7318.6023.11
Destek Talebi Gönder /wp-admin/admin.php?page=entego_n11_destek9502.0334.5026.68
N11 Kategoriler /wp-admin/admin.php?page=entego_n11_kategoriler1,2422.5042.6434.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/entego-n11/includes/class-entego-n11-deactivator.php+34
    Non-static method Entego_N11_Deactivator::eklenti_etkisizlestirildi() should not be called statically
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_entego_n11_hatalar
    • wp_entego_n11_cron_urunler
    • wp_entego_n11_kategoriler
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • entego_n11_aktiflestimi
    • entego_n11_wizard_bitirme_notu
    • recovery_mode_email_last_sent
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_kategoriler
    • > Notice in wp-content/plugins/entego-n11/admin/class-entego-n11-admin.php+181
    Undefined index: action
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_kategoriler
    • > Notice in wp-content/plugins/entego-n11/admin/class-entego-n11-admin.php+181
    Undefined index: action2
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+16
    Undefined variable: adminUrl
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+133
    Undefined index: order
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+132
    Undefined index: sirala
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+425
    Undefined index: hata_tipi
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+127
    Undefined variable: selectBasarisiz
    • > GET request to /wp-admin/admin.php?page=entego_n11_sonuclar
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-sonuclar.php+128
    Undefined variable: selectBasarili
    • > GET request to /wp-admin/admin.php?page=entego_n11_siparisler
    • > Error in wp-content/plugins/entego-n11/includes/class-entego-n11-baglanti.php+30
    Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/entego-n11/includes/class-entego-n11-baglanti.php:30
    Stack trace:
    #0 wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-siparisler.php(30): Entego_N11_Baglanti::HTTPPost()
    #1 wp-content/plugins/entego-n11/admin/class-entego-n11-admin.php(170): require('/var/www/wordpr...')
    #2 wp-content/plugins/entego-n11/includes/class-entego-n11.php(280): Entego_N11_Admin->siparisler_page()
    #3 wp-includes/class-wp-hook.php(310): entego_siparisler_n11()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=entego_n11_ayarlar
    • > Error in wp-content/plugins/entego-n11/includes/class-entego-n11-baglanti.php+30
    Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/entego-n11/includes/class-entego-n11-baglanti.php:30
    Stack trace:
    #0 wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-ayarlar.php(23): Entego_N11_Baglanti::HTTPPost()
    #1 wp-content/plugins/entego-n11/admin/class-entego-n11-admin.php(250): require('/var/www/wordpr...')
    #2 wp-content/plugins/entego-n11/includes/class-entego-n11.php(294): Entego_N11_Admin->ayarlar()
    #3 wp-includes/class-wp-hook.php(310): entego_n11_ayarlar()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 {main}
    thrown
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_kategoriler
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-kategoriler.php+161
    Trying to get property 'term_id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=entego_n11_kategoriler
    • > Notice in wp-content/plugins/entego-n11/admin/partials/entego-n11-admin-kategoriler.php+48
    Trying to get property 'name' of non-object

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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: Please add an image for screenshot #6 (Kategori Eşleştirme Sayfası)
Please take inspiration from this readme.txt

entego-n11/entego-n11.php 92% from 13 tests

Analyzing the main PHP file in "Entego N11 Entegrasyon Eklentisi" version 1.0.8.1
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,389 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,55654910,214
JavaScript132281575,067
PHP254641,0344,661
PO File1144150369
SVG30178

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity41.78
▷ Minimum class complexity3.00
▷ Maximum class complexity218.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods137
▷ Static methods75.11%
▷ Public methods13195.62%
▷ Protected methods32.19%
▷ Private methods32.19%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/jquery-ui/images/ui-icons_454545_256x240.png3.69KB4.18KB0.00%
admin/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.08KB0.10KB0.00%
admin/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png3.69KB4.18KB0.00%
admin/img/entego_logo.png45.89KB10.46KB▼ 77.22%
admin/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png0.09KB0.16KB0.00%