90% korta

Code Review | KORTA

WordPress plugin KORTA scored90%from 54 tests.

About plugin

  • Plugin page: korta
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2020
  • Latest release: Jun 10, 2020
  • Number of updates: 2
  • Update frequency: every 6.5 days
  • Top authors: kortaapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by KORTA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.99 ▼0.13
Dashboard /wp-admin3.32 ▲0.0243.72 ▼7.23
Posts /wp-admin/edit.php3.37 ▲0.0147.13 ▲1.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.33 ▼3.65
Media Library /wp-admin/upload.php3.24 ▲0.0136.25 ▲4.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 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

This is an overview of browser requirements for KORTA
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.33 ▼1.061.92 ▲0.0137.39 ▼9.20
Dashboard /wp-admin2,206 ▲185.86 ▲0.8899.71 ▼25.3837.40 ▼24.45
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0138.76 ▲3.8433.75 ▼0.91
Add New Post /wp-admin/post-new.php6,190 ▲4,65625.94 ▲2.84890.85 ▲211.9758.90 ▼15.36
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.10108.07 ▼0.5039.76 ▼3.34

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: korta, coupons, gift cards, gift vouchers

korta/korta.php Passed 13 tests

This is the main PHP file of "KORTA" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
KORTA — is a helper plugin for korta.app SaaS

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected139 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP2105664
JavaScript375342
Sass34132
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin