72% templates-patterns-collection

Code Review | Cloud Templates & Patterns collection

WordPress plugin Cloud Templates & Patterns collection scored72%from 54 tests.

About plugin

  • Plugin page: templates-pattern...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 59
  • Update frequency: every 20.1 days
  • Top authors: themeisle (100%)

Code review

54 tests

User reviews

53 reviews

Install metrics

100,000+ active /2,650,559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.84MB] [CPU: ▲17.84ms] Passed 4 tests

Server-side resources used by Cloud Templates & Patterns collection
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.34 ▲1.8759.86 ▲23.03
Dashboard /wp-admin6.91 ▲3.60143.88 ▲98.12
Posts /wp-admin/edit.php5.21 ▲1.8559.38 ▲15.38
Add New Post /wp-admin/post-new.php7.69 ▲1.8099.43 ▲10.06
Media Library /wp-admin/upload.php5.08 ▲1.8556.22 ▲22.88
Starter Sites /wp-admin/themes.php?page=tiob-starter-sites5.2857.87

Server storage [IO: ▲4.15MB] [DB: ▲0.39MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 296 new files
Database: no new tables, 10 new options
New WordPress options
tpc_maybe_run_onboarding
templates_patterns_collection_install
tpc_obd_new_user
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
templates_patterns_collection_license_data
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cloud Templates & Patterns collection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.36 ▲0.011.70 ▲0.1543.61 ▲4.68
Dashboard /wp-admin2,233 ▲565.59 ▲0.0984.10 ▼4.2237.67 ▼0.31
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0534.74 ▼2.5333.60 ▼2.12
Add New Post /wp-admin/post-new.php1,540 ▲1423.68 ▲0.49670.71 ▼26.4638.56 ▼32.13
Media Library /wp-admin/upload.php1,408 ▲84.15 ▼0.0999.21 ▲1.4644.73 ▲0.99
My Library /wp-admin/themes.php?page=tiob-starter-sites#library1,6918.29190.6795.75
Starter Sites /wp-admin/themes.php?page=tiob-starter-sites1,1557.4394.9448.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • templates_patterns_collection_license_data
    • tpc_maybe_run_onboarding
    • tpc_obd_new_user
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • templates_patterns_collection_install
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/templates-patterns-collection/beaver/includes/frontend.js.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/templates-patterns-collection/includes/Importers/WP/WP_Import.php:19
    • > PHP Fatal error
      Trait 'TIOB\\Importers\\Helpers\\Helper' not found in wp-content/plugins/templates-patterns-collection/includes/Importers/WP/Elementor_Meta_Handler.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'TIOB\\Importers\\WP\\WXR_Parser_XML' not found in wp-content/plugins/templates-patterns-collection/includes/Importers/WP/Beaver_ParserXML.php:12
    • > PHP Fatal error
      Trait 'TIOB\\Importers\\Helpers\\Helper' not found in wp-content/plugins/templates-patterns-collection/includes/WP_Cli.php on line 22
    • > PHP Fatal error
      Trait 'TIOB\\White_Label_Config' not found in wp-content/plugins/templates-patterns-collection/includes/Admin.php on line 17
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/templates-patterns-collection/beaver/includes/frontend.js.php on line 2
    • > PHP Fatal error
      Trait 'TIOB\\White_Label_Config' not found in wp-content/plugins/templates-patterns-collection/includes/Editor.php on line 17
    • > PHP Fatal error
      Trait 'TIOB\\White_Label_Config' not found in wp-content/plugins/templates-patterns-collection/includes/Elementor.php on line 17
    • > PHP Fatal error
      Trait 'TIOB\\Importers\\Helpers\\Helper' not found in wp-content/plugins/templates-patterns-collection/includes/Importers/Theme_Mods_Importer.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/templates-patterns-collection/includes/Importers/Helpers/Quiet_Skin_Legacy.php:19

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
    • > GET request to /wp-admin/themes.php?page=tiob-starter-sites#library
    • > Network (severe)
    wp-admin/undefined - 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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: neve, patterns, blocks, sites, templates...

templates-patterns-collection/templates-patterns-collection.php 92% from 13 tests

The primary PHP file in "Cloud Templates & Patterns collection" version 1.2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

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
Good job! No executable or dangerous file extensions detected34,276 lines of code in 268 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1251,77246916,324
PHP692,1004,37611,802
Sass4580154,744
CSS12128629
Markdown65520591
JSON600125
SVG40043
TypeScript11018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity31.62
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces10
Interfaces0
Traits2
Classes48
▷ Abstract classes12.08%
▷ Concrete classes4797.92%
▷ Final classes36.38%
Methods513
▷ Static methods7815.20%
▷ Public methods35869.79%
▷ Protected methods10.19%
▷ Private methods15430.02%
Functions57
▷ Named functions1322.81%
▷ Anonymous functions4477.19%
Constants53
▷ Global constants713.21%
▷ Class constants4686.79%
▷ Public constants46100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.46MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/codeinwp/themeisle-sdk/assets/images/wplk.png1.92KB1.27KB▼ 33.69%
vendor/codeinwp/themeisle-sdk/assets/images/sparks.png2.63KB1.34KB▼ 49.07%
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-patterns.png87.50KB87.41KB0.10%
vendor/codeinwp/themeisle-sdk/assets/images/neve.png1.61KB1.36KB▼ 15.24%
migration/zelle/zelle.png177.66KB71.36KB▼ 59.83%