62% skt-templates

Code Review | SKT Templates - Elementor & Gutenberg templates

WordPress plugin SKT Templates - Elementor & Gutenberg templates scored 62% from 54 tests.

About plugin

  • Plugin page: skt-templates
  • Plugin version: 4.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Aug 14, 2020
  • Latest release: Mar 24, 2022
  • Number of updates: 73
  • Update frequency: every 8.1 days
  • Top authors: sonalsinha21 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20,000+ active / 239,891 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.01MB] [CPU: ▼271.65ms] 75% from 4 tests

Analyzing server-side resources used by SKT Templates - Elementor & Gutenberg templates
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.01MB on /wp-admin/admin.php?page=skt_template_directory)
PageMemory (MB)CPU Time (ms)
Home /8.64 ▲5.1280.40 ▲31.56
Dashboard /wp-admin8.66 ▲5.2557.39 ▲24.92
Posts /wp-admin/edit.php8.66 ▲5.0161.21 ▲22.73
Add New Post /wp-admin/post-new.php11.64 ▲4.67114.95 ▼1,164.11
Media Library /wp-admin/upload.php8.66 ▲5.3655.08 ▲29.86
Gutenberg Templates /wp-admin/admin.php?page=skt_template_gutenberg8.6649.16
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.6647.77
SKT Templates /wp-admin/admin.php?page=skt-templates8.6647.32
About Templates /wp-admin/admin.php?page=skt_template_about8.6658.32
Elementor Templates /wp-admin/admin.php?page=skt_template_directory9.0468.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 261 new files
Database: no new tables, 4 new options
New WordPress options
fs_accounts
fs_gdpr
fs_debug_mode
fs_active_plugins

Browser metrics Passed 4 tests

An overview of browser requirements for SKT Templates - Elementor & Gutenberg templates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,882 ▲13816.12 ▼0.246.08 ▼0.432.31 ▼0.06
Dashboard /wp-admin3,009 ▲1556.29 ▼0.16122.34 ▼14.26195.42 ▲36.48
Posts /wp-admin/edit.php2,802 ▲1143.32 ▼0.1166.88 ▲4.41168.74 ▲26.28
Add New Post /wp-admin/post-new.php1,703 ▼7021.54 ▼0.44379.45 ▼117.71201.52 ▲41.35
Media Library /wp-admin/upload.php1,813 ▲1155.94 ▲0.18128.47 ▼17.04225.71 ▲41.40
Gutenberg Templates /wp-admin/admin.php?page=skt_template_gutenberg2,3073.6060.41195.72
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4922.6656.43116.87
SKT Templates /wp-admin/admin.php?page=skt-templates1,3472.6554.33170.02
About Templates /wp-admin/admin.php?page=skt_template_about1,3919.15293.49184.88
Elementor Templates /wp-admin/admin.php?page=skt_template_directory10,7032.7994.69293.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/skt-templates/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_debug_mode
    • fs_gdpr
    • fs_active_plugins
    • fs_accounts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=skt-templates
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/templates/builder-fullwidth-gb.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/flash/inline-style.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/oceanwp/inline-style.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/enlightenment/inline-style.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/virtue/inline-style.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/twentyfifteen/inline-style.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/experon/inline-style.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/shapely/inline-style.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/news-portal/inline-style.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/skt-templates/vendor/websites/full-width-page-templates/themes/envy-blog/inline-style.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=skt_template_directory
    • > Network (severe)
    wp-admin/99 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=skt_template_about
    • > Network (severe)
    wp-content/plugins/skt-templates/core/assets/js/skt-templates-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: templates, themes, elementor, gutenberg, one click demo import

skt-templates/skt-templates.php 92% from 13 tests

This is the main PHP file of "SKT Templates - Elementor & Gutenberg templates" version 4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 719 characters long)

Code Analysis 97% from 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
No dangerous file extensions were detected41,732 lines of code in 209 files:
LanguageFilesBlank linesComment linesLines of code
PHP1877,78118,15835,095
CSS159274345,763
JavaScript57695633
Markdown1680214
JSON10027

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity65.55
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes66
▷ Abstract classes34.55%
▷ Concrete classes6395.45%
▷ Final classes00.00%
Methods1,332
▷ Static methods19314.49%
▷ Public methods95671.77%
▷ Protected methods282.10%
▷ Private methods34826.13%
Functions109
▷ Named functions10293.58%
▷ Anonymous functions76.42%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/search-icon.png0.36KB0.36KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
images/logo.png2.09KB1.52KB▼ 27.08%
freemius/assets/img/skt-templates.png3.22KB2.24KB▼ 30.36%