76% wosse

Code Review | WOSSE WooCommerce Sözleşmeleri

WordPress plugin WOSSE WooCommerce Sözleşmeleri scored76%from 54 tests.

About plugin

  • Plugin page: wosse
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 9, 2020
  • Latest release: Nov 25, 2020
  • Number of updates: 34
  • Update frequency: every 1.4 days
  • Top authors: hmyazilim (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,091 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.74ms] Passed 4 tests

This is a short check of server-side resources used by WOSSE WooCommerce Sözleşmeleri
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.92 ▼4.86
Dashboard /wp-admin3.31 ▼0.0445.71 ▼18.04
Posts /wp-admin/edit.php3.36 ▲0.0048.22 ▲0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.63 ▼2.82
Media Library /wp-admin/upload.php3.23 ▲0.0036.79 ▼1.24

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WOSSE WooCommerce Sözleşmeleri
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.64 ▼0.742.22 ▲0.4545.74 ▲5.47
Dashboard /wp-admin2,218 ▲154.88 ▼0.02108.31 ▲0.2643.41 ▲3.03
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0239.76 ▲2.9837.33 ▲0.59
Add New Post /wp-admin/post-new.php1,550 ▲518.17 ▼5.08609.35 ▼69.7359.41 ▲9.55
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.03104.28 ▲3.4846.13 ▲0.06

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wosse/class/onyuzVeriIletisimi.php
    • > /wp-content/plugins/wosse/class/wp_autoupdate_extended.php
    • > /wp-content/plugins/wosse/class/HMYLS.php
    • > /wp-content/plugins/wosse/class/kisaKodlar.php
    • > /wp-content/plugins/wosse/formTasarim.php
    • > /wp-content/plugins/wosse/WOSSE.php
    • > /wp-content/plugins/wosse/arayuzler/adminMusteriSozlesmesi.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wosse/pdfCevirici.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: These screenshots lack descriptions #5, #9 in wosse/assets to your readme.txt
The official readme.txt is a good inspiration

wosse/WOSSE.php 77% from 13 tests

The main PHP file in "WOSSE WooCommerce Sözleşmeleri" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Keep the plugin description shorter than 140 characters (currently 309 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wosse.php" instead of "WOSSE.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected43,691 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,7469,35641,425
SVG3111,882
CSS1795213
JavaScript16615108
Markdown121063

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,379)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 502)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity431.46
▷ Minimum class complexity1.00
▷ Maximum class complexity4,379.00
Average method complexity10.77
▷ Minimum method complexity1.00
▷ Maximum method complexity502.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods573
▷ Static methods11019.20%
▷ Public methods44377.31%
▷ Protected methods12722.16%
▷ Private methods30.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants47
▷ Global constants47100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.56MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
TCPDF/images/image_with_alpha.png238.49KB61.71KB▼ 74.12%
TCPDF/images/tcpdf_signature.png66.34KB25.47KB▼ 61.61%
TCPDF/images/alpha.png23.33KB30.34KB0.00%
TCPDF/images/logo_example.png18.96KB17.68KB▼ 6.71%
TCPDF/images/img.png190.57KB64.69KB▼ 66.06%