90% sword-layouts

Code Review | Gutenberg Tile Block

WordPress plugin Gutenberg Tile Block scored90%from 54 tests.

About plugin

  • Plugin page: sword-layouts
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Feb 20, 2018
  • Latest release: Dec 9, 2018
  • Number of updates: 11
  • Update frequency: every 26.6 days
  • Top authors: davidsword (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,778 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: ▲0.01MB] [CPU: ▼0.68ms] Passed 4 tests

This is a short check of server-side resources used by Gutenberg Tile Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.01 ▲5.80
Dashboard /wp-admin3.31 ▲0.0152.24 ▼2.85
Posts /wp-admin/edit.php3.37 ▲0.0152.40 ▲4.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.39 ▼3.63
Media Library /wp-admin/upload.php3.24 ▲0.0136.45 ▼1.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gutenberg Tile Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.32 ▼1.244.95 ▲3.0639.35 ▼6.19
Dashboard /wp-admin2,206 ▲244.81 ▼1.09113.43 ▲1.5739.64 ▼7.09
Posts /wp-admin/edit.php2,086 ▼62.05 ▲0.0539.56 ▼3.1035.20 ▼2.44
Add New Post /wp-admin/post-new.php6,192 ▲4,65921.70 ▼1.71861.85 ▲227.7074.72 ▲21.44
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.04100.70 ▼12.1242.87 ▼4.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: gutenberg, blocks, modern, page builder, layouts...

sword-layouts/sword-layouts.php Passed 13 tests

"Gutenberg Tile Block" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Tile layout blocks for Gutenberg

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected39 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP242436
CSS2002
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin