84% template-kit-export

Code Review | Template Kit - Export

WordPress plugin Template Kit - Export scored84%from 54 tests.

About plugin

  • Plugin page: template-kit-export
  • Plugin version: 1.0.21
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Mar 4, 2022
  • Number of updates: 56
  • Update frequency: every 14.0 days
  • Top authors: envato (50%)Brad Davis (37.5%)dtbaker (16.07%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /32,448 total downloads

Benchmarks

Plugin footprint 82% 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: ▲0.40MB] [CPU: ▼0.61ms] Passed 4 tests

A check of server-side resources used by Template Kit - Export
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4645.34 ▲2.27
Dashboard /wp-admin3.74 ▲0.3954.13 ▼15.57
Posts /wp-admin/edit.php3.79 ▲0.4466.41 ▲13.22
Add New Post /wp-admin/post-new.php6.28 ▲0.4097.38 ▲8.57
Media Library /wp-admin/upload.php3.60 ▲0.3740.21 ▲2.28
Export /wp-admin/admin.php?page=envato-export-template-kit3.5833.73
Templates /wp-admin/edit.php?post_type=envato_tk_templates3.7144.52

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

Filesystem and database footprint
Please try to fix the following items
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/template-kit-export/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
envato_tk_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Template Kit - Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18813.83 ▼0.524.97 ▲3.2936.57 ▼5.03
Dashboard /wp-admin2,269 ▲635.89 ▲1.0098.33 ▼9.3540.36 ▼7.04
Posts /wp-admin/edit.php2,152 ▲492.06 ▲0.0246.29 ▲0.6649.46 ▲14.32
Add New Post /wp-admin/post-new.php1,571 ▲4023.70 ▲0.43640.47 ▼82.3349.76 ▼0.72
Media Library /wp-admin/upload.php1,451 ▲544.30 ▼0.00103.59 ▲3.4145.23 ▼0.45
Export /wp-admin/admin.php?page=envato-export-template-kit9401.8229.8535.18
Templates /wp-admin/edit.php?post_type=envato_tk_templates1,1242.0236.9930.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • envato_tk_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/template-kit-export/admin/index.php on line 1
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/template-kit-export/includes/index.php on line 1
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/template-kit-export/index.php on line 1
    • > PHP Warning
      Unterminated comment starting line 1 in wp-content/plugins/template-kit-export/public/index.php on line 1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: template, elementor, templates

template-kit-export/template-kit-export.php Passed 13 tests

The main PHP file in "Template Kit - Export" ver. 1.0.21 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Use this plugin to export Template Kits for Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,667 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP274061,4062,426
JavaScript61176106
CSS4524101
HTML10623
SVG10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity25.17
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods95
▷ Static methods44.21%
▷ Public methods8488.42%
▷ Protected methods00.00%
▷ Private methods1111.58%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin