84% kktc-doviz-kurlari

Code Review | KKTC Döviz Kurları

WordPress plugin KKTC Döviz Kurları scored 84% from 54 tests.

About plugin

  • Plugin page: kktc-doviz-kurlari
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 19, 2013
  • Latest release: Dec 19, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: cengizonkal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by KKTC Döviz Kurları
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.69 ▼5.61
Dashboard /wp-admin3.32 ▲0.0243.05 ▼4.75
Posts /wp-admin/edit.php3.37 ▲0.0254.16 ▲4.75
Add New Post /wp-admin/post-new.php5.91 ▲0.02106.78 ▲9.45
Media Library /wp-admin/upload.php3.25 ▲0.0234.51 ▲0.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_kktc_doviz_widget

Browser metrics Passed 4 tests

An overview of browser requirements for KKTC Döviz Kurları
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.121.68 ▼0.1844.42 ▲3.29
Dashboard /wp-admin2,206 ▲184.85 ▼0.04116.90 ▲7.3140.54 ▼2.55
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0450.06 ▲16.1043.62 ▲9.53
Add New Post /wp-admin/post-new.php1,530 ▲1623.33 ▲5.89845.76 ▲214.3258.09 ▲7.33
Media Library /wp-admin/upload.php1,385 ▼64.17 ▼0.00109.83 ▲11.6149.28 ▲5.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_kktc_doviz_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kktc-doviz-kurlari/kktc-doviz.php:11

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Ön yüzü), #2 (Admin Paneli)
You can look at the official readme.txt

kktc-doviz-kurlari/kktc-doviz.php 92% from 13 tests

The entry point to "KKTC Döviz Kurları" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kktc-doviz-kurlari.php" instead of "kktc-doviz.php")

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
Good job! No executable or dangerous file extensions detected57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173857

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.01KB3.68KB▼ 63.20%
screenshot-2.png15.44KB7.37KB▼ 52.28%