84% turkish-liras-currency-for-woocommerce

Code Review | WooCommerce için Türk Lirası Simgesi

WordPress plugin WooCommerce için Türk Lirası Simgesi scored 84% from 54 tests.

About plugin

  • Plugin page: turkish-liras-cur...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Mar 30, 2014
  • Latest release: Mar 30, 2014
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: BurakSahin59 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,566 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.07ms] Passed 4 tests

Server-side resources used by WooCommerce için Türk Lirası Simgesi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.39 ▼11.17
Dashboard /wp-admin3.31 ▲0.0143.91 ▼1.85
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▼4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.63 ▼2.95
Media Library /wp-admin/upload.php3.23 ▲0.0036.81 ▲5.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce için Türk Lirası Simgesi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.16 ▼1.141.81 ▼0.0442.52 ▼0.15
Dashboard /wp-admin2,208 ▲204.85 ▼1.03109.92 ▼5.6943.93 ▼2.83
Posts /wp-admin/edit.php2,088 ▼42.01 ▼0.0340.13 ▲0.2539.33 ▲2.33
Add New Post /wp-admin/post-new.php1,530 ▼423.25 ▲0.15616.82 ▼38.1966.90 ▲14.39
Media Library /wp-admin/upload.php1,393 ▲84.22 ▼0.0397.25 ▼4.2042.62 ▼2.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/turkish-liras-currency-for-woocommerce/turkish-liras-currency-for-woocommerce.php:15
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/turkish-liras-currency-for-woocommerce/turkish-liras-currency-for-woocommerce.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
10 plugin tags: commerce currency, turkish liras currency, e-commerce, woocommerce tl simgesi, woocommerce...

turkish-liras-currency-for-woocommerce/turkish-liras-currency-for-woocommerce.php Passed 13 tests

The main file in "WooCommerce için Türk Lirası Simgesi" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Türk Lirası Simgesini Siteniz Kullanabilirsiniz.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171220

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin