78% ikorektor

Code Review | iKorektor

WordPress plugin iKorektor scored78%from 54 tests.

About plugin

  • Plugin page: ikorektor
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Mar 24, 2020
  • Number of updates: 10
  • Update frequency: every 40.2 days
  • Top authors: ikorektor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 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.10MB] [CPU: ▼2.49ms] Passed 4 tests

A check of server-side resources used by iKorektor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.51 ▲3.42
Dashboard /wp-admin3.42 ▲0.0753.94 ▼5.97
Posts /wp-admin/edit.php3.53 ▲0.1753.04 ▼0.37
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.85 ▼7.05
Media Library /wp-admin/upload.php3.34 ▲0.1140.25 ▲6.93

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for iKorektor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.74 ▲0.371.85 ▲0.1841.25 ▲2.12
Dashboard /wp-admin2,218 ▲385.60 ▼0.0280.96 ▼3.4936.82 ▼4.68
Posts /wp-admin/edit.php2,124 ▲242.01 ▼0.0139.25 ▲5.1136.00 ▼5.66
Add New Post /wp-admin/post-new.php1,547 ▲1923.32 ▲0.19672.39 ▼11.0158.23 ▲3.91
Media Library /wp-admin/upload.php1,415 ▲154.26 ▲0.07100.09 ▼1.2441.57 ▼2.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ikorektor/ikorektor.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ikorektor/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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 need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

ikorektor/ikorektor.php Passed 13 tests

The entry point to "iKorektor" version 1.3.0 is a PHP file that has certain tags in its header comment area
58 characters long description:
Plugin dodający przycisk autokorekty w polach tekstowych.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin399 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33714393
CSS1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected