83% mahkeme-karariyla

Code Review | Mahkeme Kararıyla

WordPress plugin Mahkeme Kararıyla scored83%from 54 tests.

About plugin

  • Plugin page: mahkeme-karariyla
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2014
  • Latest release: Mar 29, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: erayalakese (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼10.89ms] Passed 4 tests

Analyzing server-side resources used by Mahkeme Kararıyla
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6018.52 ▼29.05
Dashboard /wp-admin3.32 ▲0.0155.27 ▲6.71
Posts /wp-admin/edit.php3.37 ▲0.0148.40 ▼6.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.07 ▼8.77
Media Library /wp-admin/upload.php3.24 ▲0.0138.83 ▲0.94
Mahkeme Kararıyla Kapat /wp-admin/options-general.php?page=mahkemeKarariyla3.2132.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
nedenKapaliENG
widget_recent-comments
theysaidso_admin_options
db_upgraded
nedenKapali

Browser metrics Passed 4 tests

A check of browser resources used by Mahkeme Kararıyla
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼30514.10 ▼0.250.64 ▼1.1315.27 ▼23.75
Dashboard /wp-admin2,193 ▲135.58 ▼0.0896.61 ▼3.0245.02 ▲3.58
Posts /wp-admin/edit.php2,101 ▼22.01 ▼0.0136.39 ▼7.0635.03 ▼3.22
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▼0.10669.84 ▼41.5568.93 ▲8.12
Media Library /wp-admin/upload.php1,398 ▲14.19 ▼0.00100.13 ▼4.9749.64 ▲6.08
Mahkeme Kararıyla Kapat /wp-admin/options-general.php?page=mahkemeKarariyla7872.0027.1725.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mahkeme-karariyla/index.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mahkeme-karariyla/giris.php:136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (screenshot-1.png beyle bişey) image missing
The official readme.txt might help

mahkeme-karariyla/index.php 85% from 13 tests

The main PHP script in "Mahkeme Kararıyla" version 0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("mahkeme-karariyla.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2127180

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.93KB4.97KB▼ 76.25%