83% kopa-page-builder

Code Review | Kopa Page Builder

WordPress plugin Kopa Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: kopa-page-builder
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Jul 30, 2015
  • Latest release: Jul 11, 2017
  • Number of updates: 22
  • Update frequency: every 32.4 days
  • Top authors: tranthethang (86.36%)kopatheme (18.18%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /23,382 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.56ms] Passed 4 tests

A check of server-side resources used by Kopa Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.42 ▼5.51
Dashboard /wp-admin3.68 ▲0.3453.27 ▼14.97
Posts /wp-admin/edit.php3.73 ▲0.3850.49 ▼2.42
Add New Post /wp-admin/post-new.php6.20 ▲0.3291.89 ▲0.67
Media Library /wp-admin/upload.php3.54 ▲0.3141.69 ▲4.11

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/kopa-page-builder/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kopa Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7013.67 ▼0.601.96 ▲0.0246.29 ▲3.53
Dashboard /wp-admin2,237 ▲345.88 ▲0.93104.55 ▼12.4143.51 ▼1.42
Posts /wp-admin/edit.php2,119 ▲372.05 ▲0.0336.02 ▼1.6833.99 ▲0.20
Add New Post /wp-admin/post-new.php1,612 ▲8621.79 ▲4.30633.83 ▼53.4829.20 ▼34.09
Media Library /wp-admin/upload.php1,419 ▲194.22 ▲0.0296.31 ▼14.6341.02 ▼6.72

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-checkbox.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-attachment-image.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-alert.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-color.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kopa-page-builder/inc/class-kpb-autoloader.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Minify' not found in wp-content/plugins/kopa-page-builder/inc/minifier/class-kpb-minifier-css.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kopa-page-builder/kopa-page-builder.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-radio.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'KPB_Field' not found in wp-content/plugins/kopa-page-builder/inc/fields/class-kpb-field-icon.php:5

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Kopa Page Builder" version 2.0.8
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)

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
Success! There were no dangerous files found in this plugin7,674 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44051572,347
PHP316971472,347
CSS613371,257
CoffeeScript11843851
Sass41380822
SVG10050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.16
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes00.00%
Methods122
▷ Static methods3125.41%
▷ Public methods11997.54%
▷ Protected methods00.00%
▷ Private methods32.46%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/transp_bg.png0.08KB0.09KB0.00%
assets/images/placehold.png2.15KB0.89KB▼ 58.69%