94% tiles

Code Review | Gutenberg Block Patterns & Design Framework — Tiles

WordPress plugin Gutenberg Block Patterns & Design Framework — Tiles scored 94% from 54 tests.

About plugin

  • Plugin page: tiles
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7.2
  • WordPress version: 5.8.1
  • First release: Jun 3, 2021
  • Latest release: Jun 9, 2021
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: usetiles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 260 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.09MB] [CPU: ▼145.17ms] Passed 4 tests

A check of server-side resources used by Gutenberg Block Patterns & Design Framework — Tiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1025.67 ▼2.82
Dashboard /wp-admin3.15 ▲0.0936.41 ▼5.95
Posts /wp-admin/edit.php3.27 ▲0.1536.47 ▼0.27
Add New Post /wp-admin/post-new.php5.55 ▲0.1174.72 ▼571.64
Media Library /wp-admin/upload.php3.10 ▲0.0926.22 ▲0.84

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gutenberg Block Patterns & Design Framework — Tiles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,669 ▲4315.55 ▼0.344.96 ▼1.0175.94 ▼1.55
Dashboard /wp-admin2,933 ▲376.13 ▼0.05115.54 ▼18.61168.63 ▼9.75
Posts /wp-admin/edit.php2,740 ▼03.24 ▲0.0063.70 ▼0.36138.63 ▲5.02
Add New Post /wp-admin/post-new.php3,817 ▲1018.92 ▼0.03433.52 ▼37.16160.04 ▼4.50
Media Library /wp-admin/upload.php1,752 ▲35.49 ▼0.04147.11 ▼3.19185.59 ▲2.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tiles/includes/patterns/join-our-team.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tiles/includes/patterns/fullwidth-cta.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tiles() in wp-content/plugins/tiles/includes/patterns/offset-gallery.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tiles/includes/patterns/three-steps.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tiles/includes/patterns/right-stats.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: gutenberg blocks, patterns, gutenberg, blocks

tiles/tiles.php Passed 13 tests

This is the main PHP file of "Gutenberg Block Patterns & Design Framework — Tiles" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
112 characters long description:
Rapidly build beautiful websites with Tiles, the most robust collection of utility block patterns for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected598 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP17121243595
CSS2002
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods30
▷ Static methods1963.33%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin