84% wpkoi-templates-for-elementor

Code Review | WPKoi Templates for Elementor

WordPress plugin WPKoi Templates for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: wpkoi-templates-f...
  • Plugin version: 2.5.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Oct 26, 2023
  • Number of updates: 89
  • Update frequency: every 19.4 days
  • Top authors: wpkoithemes (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

6,000+ active /150,900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.53ms] Passed 4 tests

Analyzing server-side resources used by WPKoi Templates for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.97 ▼2.50
Dashboard /wp-admin3.31 ▲0.0043.84 ▼8.93
Posts /wp-admin/edit.php3.36 ▲0.0044.90 ▼0.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.04 ▼2.62
Media Library /wp-admin/upload.php3.23 ▲0.0034.48 ▲0.51

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

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

Browser metrics Passed 4 tests

WPKoi Templates for Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.45 ▲0.091.70 ▼0.2438.11 ▼7.52
Dashboard /wp-admin2,210 ▲365.56 ▼0.1581.32 ▼8.8439.90 ▼0.44
Posts /wp-admin/edit.php2,115 ▲122.01 ▼0.0140.38 ▲0.7135.83 ▲0.10
Add New Post /wp-admin/post-new.php1,538 ▲1023.12 ▲0.01666.25 ▼26.3669.84 ▲19.31
Media Library /wp-admin/upload.php1,415 ▲154.25 ▲0.0695.95 ▼14.5741.57 ▼5.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/wpkoi-templates-for-elementor/elements/includes/elementor-helper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: wpkoi, template library, addons, elementor addon, elementor template...

wpkoi-templates-for-elementor/wpkoi-templates-for-elementor.php Passed 13 tests

Analyzing the main PHP file in "WPKoi Templates for Elementor" version 2.5.5
112 characters long description:
WPKoi Templates for Elementor extends Elementor Template Library with WPKoi pages from the popular WPKoi Themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,501 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP134981593,458
JavaScript811736
CSS7007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.33
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods53
▷ Static methods23.77%
▷ Public methods4381.13%
▷ Protected methods1018.87%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wpkoi-logo.png5.70KB4.31KB▼ 24.49%