83% kodyok-page-builder

Code Review | Kodyok Page Builder

WordPress plugin Kodyok Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: kodyok-page-builder
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Mar 2, 2018
  • Latest release: Mar 9, 2018
  • Number of updates: 9
  • Update frequency: every 2.2 days
  • Top authors: kodyok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /855 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.03MB] [CPU: ▼11.81ms] Passed 4 tests

Server-side resources used by Kodyok Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.43 ▼12.80
Dashboard /wp-admin3.31 ▼0.0446.13 ▼12.66
Posts /wp-admin/edit.php3.36 ▲0.0146.82 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.83 ▼20.59
Media Library /wp-admin/upload.php3.23 ▲0.0032.47 ▲1.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Kodyok Page Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,199 ▲46414.38 ▲0.1922.74 ▲20.7638.95 ▼10.15
Dashboard /wp-admin2,203 ▲155.77 ▲0.7493.34 ▼21.0438.07 ▼3.03
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0237.85 ▼3.2534.64 ▼3.13
Add New Post /wp-admin/post-new.php1,536 ▲1422.92 ▼0.25641.93 ▼30.4962.08 ▼11.34
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0793.84 ▼9.9141.62 ▼1.49

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kodyok-page-builder/kodyok.php:416
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kodyok-page-builder/editor.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Contributors: Contributors not specified
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

kodyok-page-builder/kodyok.php 92% from 13 tests

The main file in "Kodyok Page Builder" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kodyok-page-builder.php" instead of "kodyok.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin37,551 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS137879621,306
JavaScript233,32954610,745
SVG2002,959
HTML992101,333
PHP2112111,172
JSON10036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.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
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/column_05.png1.00KB0.13KB▼ 87.00%
assets/img/column_07.png1.00KB0.14KB▼ 86.49%
assets/img/column_06.png1.00KB0.13KB▼ 86.97%
assets/img/column_03.png0.96KB0.11KB▼ 88.92%
assets/img/column_04.png0.99KB0.12KB▼ 87.66%