79% kadence-starter-templates

Code Review | Starter Templates by Kadence WP

WordPress plugin Starter Templates by Kadence WP scored79%from 54 tests.

About plugin

  • Plugin page: kadence-starter-t...
  • Plugin version: 1.2.22
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Oct 23, 2023
  • Number of updates: 47
  • Update frequency: every 25.0 days
  • Top authors: britner (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100,000+ active /1,782,305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.54MB] [CPU: ▲4.06ms] Passed 4 tests

An overview of server-side resources used by Starter Templates by Kadence WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.68 ▲1.2246.55 ▲6.55
Dashboard /wp-admin4.95 ▲1.6557.77 ▲10.56
Posts /wp-admin/edit.php5.07 ▲1.7151.05 ▲5.27
Add New Post /wp-admin/post-new.php7.54 ▲1.6586.32 ▼6.16
Media Library /wp-admin/upload.php4.88 ▲1.6544.56 ▲12.04
Starter Templates /wp-admin/themes.php?page=kadence-starter-templates5.0342.44

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
kadence_starter_templates_config
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Starter Templates by Kadence WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.151.79 ▲0.2347.48 ▲7.65
Dashboard /wp-admin2,202 ▲255.65 ▲0.0596.55 ▲8.9442.15 ▼2.57
Posts /wp-admin/edit.php2,107 ▲102.02 ▲0.0133.44 ▼1.3234.34 ▼2.49
Add New Post /wp-admin/post-new.php1,536 ▲823.15 ▼0.04627.39 ▼1.2350.94 ▼0.34
Media Library /wp-admin/upload.php1,401 ▲44.22 ▲0.07103.45 ▲10.4846.11 ▲4.31
Starter Templates /wp-admin/themes.php?page=kadence-starter-templates1,84514.28301.0758.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • kadence_starter_templates_config
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/kadence-starter-templates/vendor/wxr-importer/WXRImporter.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kadence_Starter_Templates\\is_admin() in wp-content/plugins/kadence-starter-templates/inc/class-template-database-importer.php:120
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/kadence-starter-templates/vendor/wxr-importer/Importer.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Kadence_Starter_Templates\\Logger' not found in wp-content/plugins/kadence-starter-templates/inc/class-logger-cli.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/kadence-starter-templates/inc/class-customizer-option.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/kadence-starter-templates/inc/class-wxr-importer.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Kadence_Starter_Templates\\add_action() in wp-content/plugins/kadence-starter-templates/inc/class-author-meta.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/kadence-starter-templates/inc/class-import-customizer-option.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/kadence-starter-templates/vendor/wxr-importer/WPImporterLoggerCLI.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/themes.php?page=kadence-starter-templates
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    `position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: gutenberg, templates

kadence-starter-templates/kadence-starter-templates.php Passed 13 tests

The primary PHP file in "Starter Templates by Kadence WP" version 1.2.22 is used by WordPress to initiate all plugin functionality
48 characters long description:
Choose the prebuilt website and click to import.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected10,372 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,2133,0066,964
JavaScript818972,012
Sass2741,084
CSS37011312

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity44.96
▷ Minimum class complexity1.00
▷ Maximum class complexity314.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes27.69%
Methods270
▷ Static methods6624.44%
▷ Public methods19772.96%
▷ Protected methods3814.07%
▷ Private methods3512.96%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/kadence_logo.png23.29KB11.74KB▼ 49.58%