84% paytr-taksit-tablosu-woocommerce

Code Review | PayTR Taksit Tablosu - WooCommerce

WordPress plugin PayTR Taksit Tablosu - WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: paytr-taksit-tabl...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2019
  • Latest release: Apr 30, 2021
  • Number of updates: 35
  • Update frequency: every 13.9 days
  • Top authors: paytrteknik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /13,629 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.01ms] Passed 4 tests

An overview of server-side resources used by PayTR Taksit Tablosu - WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.00 ▼3.42
Dashboard /wp-admin3.38 ▲0.0449.44 ▼16.35
Posts /wp-admin/edit.php3.49 ▲0.1450.62 ▲1.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.01 ▼14.15
Media Library /wp-admin/upload.php3.30 ▲0.0730.92 ▼10.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for PayTR Taksit Tablosu - WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.57 ▼0.582.16 ▲0.2840.86 ▼0.22
Dashboard /wp-admin2,227 ▲245.87 ▼0.05105.37 ▼1.3642.90 ▼0.17
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0239.31 ▲2.5336.96 ▲0.47
Add New Post /wp-admin/post-new.php1,557 ▲3218.68 ▲0.98608.37 ▼37.8766.70 ▲9.18
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0597.40 ▼13.6741.01 ▼4.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/paytr-taksit-tablosu-woocommerce/includes/html-installment-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/paytr-taksit-tablosu-woocommerce/includes/html-installment-tab-content.php:4
    • > PHP Warning
      Use of undefined constant PAYTRTT_PLUGIN_URL - assumed 'PAYTRTT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/paytr-taksit-tablosu-woocommerce/includes/admin/html-section-info.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/paytr-taksit-tablosu-woocommerce/includes/admin/html-section-info.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: taksit tablosu, taksit, woocommerce, taksit seenekleri, paytr

paytr-taksit-tablosu-woocommerce/paytr-taksit-tablosu-woocommerce.php Passed 13 tests

The principal PHP file in "PayTR Taksit Tablosu - WooCommerce" v. 1.3.1 is loaded by WordPress automatically on each request
99 characters long description:
The plugin that allows you to show the installment options of your PayTR store on the product page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin570 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP510064440
PO File1324092
JavaScript15027
CSS11011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/dashboard-admin-icon.png2.24KB0.46KB▼ 79.44%