90% garsoft-ehliyet-yas-hesaplama

Code Review | Garsoft Ehliyet Yaş Hesaplama

WordPress plugin Garsoft Ehliyet Yaş Hesaplama scored90%from 54 tests.

About plugin

  • Plugin page: garsoft-ehliyet-y...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2023
  • Latest release: Sep 28, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: garsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.83ms] Passed 4 tests

This is a short check of server-side resources used by Garsoft Ehliyet Yaş Hesaplama
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.63 ▼6.04
Dashboard /wp-admin3.33 ▲0.0249.50 ▼4.33
Posts /wp-admin/edit.php3.38 ▲0.0246.54 ▲1.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.16 ▼1.43
Media Library /wp-admin/upload.php3.25 ▲0.0235.33 ▲0.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Garsoft Ehliyet Yaş Hesaplama
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.56 ▼0.812.16 ▲0.1042.35 ▲0.09
Dashboard /wp-admin2,220 ▲324.87 ▲0.00102.71 ▼10.7538.01 ▼6.64
Posts /wp-admin/edit.php2,103 ▲142.01 ▼0.1234.00 ▼7.1637.11 ▲4.72
Add New Post /wp-admin/post-new.php1,549 ▲1618.23 ▼4.93618.93 ▼31.5757.86 ▼8.24
Media Library /wp-admin/upload.php1,402 ▲144.24 ▼0.0296.61 ▲0.0342.35 ▼2.28

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ehliyet snav sorular, ehliyet ya hesaplama

garsoft-ehliyet-yas-hesaplama/index.php 92% from 13 tests

"Garsoft Ehliyet Yaş Hesaplama" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("garsoft-ehliyet-yas-hesaplama.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin778 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2710397
PHP5399285
JavaScript110096

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/whatsapp.png12.66KB4.39KB▼ 65.34%