84% kcsg-kartra-pages

Code Review | KCSG Kartra Pages

WordPress plugin KCSG Kartra Pages scored84%from 54 tests.

About plugin

  • Plugin page: kcsg-kartra-pages
  • Plugin version: 1.0.19
  • PHP compatiblity: 5.6.30+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2019
  • Latest release: Apr 22, 2023
  • Number of updates: 72
  • Update frequency: every 17.7 days
  • Top authors: bkatzung (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /9,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.03ms] Passed 4 tests

A check of server-side resources used by KCSG Kartra Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.57 ▲1.76
Dashboard /wp-admin3.36 ▲0.0647.76 ▲2.31
Posts /wp-admin/edit.php3.41 ▲0.0646.86 ▼1.83
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.61 ▼4.40
Media Library /wp-admin/upload.php3.28 ▲0.0636.71 ▲0.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

KCSG Kartra Pages: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.241.65 ▲0.0843.78 ▲5.43
Dashboard /wp-admin2,198 ▲205.64 ▼0.0695.61 ▼3.3241.29 ▼2.98
Posts /wp-admin/edit.php2,082 ▼182.00 ▲0.0533.98 ▼6.7632.27 ▼6.61
Add New Post /wp-admin/post-new.php1,526 ▼223.47 ▲0.18670.10 ▲22.7456.30 ▲0.14
Media Library /wp-admin/upload.php1,400 ▼34.23 ▼0.04110.26 ▲10.1351.49 ▲8.67

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/kcsg-kartra-pages/kcsg-kartra-page.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kcsg-kartra-pages/admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/kcsg-kartra-pages/plugin.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: pages, kartra, loading, kcsg, embedding...

kcsg-kartra-pages/plugin.php 85% from 13 tests

Analyzing the main PHP file in "KCSG Kartra Pages" version 1.0.19
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kcsg-kartra-pages.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin360 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP364107360

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin