89% sozlesmeler

Code Review | Sözleşmeler

WordPress plugin Sözleşmeler scored89%from 54 tests.

About plugin

  • Plugin page: sozlesmeler
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 17, 2020
  • Latest release: Nov 5, 2023
  • Number of updates: 45
  • Update frequency: every 30.9 days
  • Top authors: emreguler (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /15,970 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.01MB] [CPU: ▼5.61ms] Passed 4 tests

An overview of server-side resources used by Sözleşmeler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.29 ▲1.09
Dashboard /wp-admin3.32 ▲0.0144.74 ▼1.53
Posts /wp-admin/edit.php3.37 ▲0.0145.90 ▼4.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.96 ▼12.86
Media Library /wp-admin/upload.php3.24 ▲0.0133.45 ▼3.64

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 16 new options
New WordPress options
woocontracts_1_baslik
woocontracts_3_yaz
widget_theysaidso_widget
woocontracts_baslik
woocontracts_2_baslik
widget_recent-comments
can_compress_scripts
woocontracts_2a
woocontracts_3a
woocontracts_2_yaz
...

Browser metrics Passed 4 tests

Sözleşmeler: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.57 ▲0.171.72 ▲0.1039.70 ▲1.41
Dashboard /wp-admin2,198 ▲175.55 ▼0.1587.14 ▼17.2540.70 ▼2.24
Posts /wp-admin/edit.php2,107 ▲42.11 ▲0.1539.16 ▲3.3236.96 ▲3.24
Add New Post /wp-admin/post-new.php1,532 ▲623.27 ▲0.31656.39 ▼97.1151.44 ▼16.90
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0098.27 ▲1.5041.23 ▼1.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, sozlesmeler, contract, sozlesme

sozlesmeler/woocontracts.php 85% from 13 tests

This is the main PHP file of "Sözleşmeler" version 2.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sozlesmeler.php" instead of "woocontracts.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected809 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13128510
JavaScript3117191
CSS2110108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin