84% tiles-marquee-block

Code Review | Tiles Marquee Block

WordPress plugin Tiles Marquee Block scored 84% from 54 tests.

About plugin

  • Plugin page: tiles-marquee-block
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7.2
  • WordPress version: 5.9.2
  • First release: Jun 9, 2021
  • Latest release: Jul 9, 2021
  • Number of updates: 6
  • Update frequency: every 5.0 days
  • Top authors: usetiles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 938 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.49MB] [CPU: ▼355.68ms] Passed 4 tests

This is a short check of server-side resources used by Tiles Marquee Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.95 ▼0.5616.96 ▼35.62
Dashboard /wp-admin2.87 ▼0.5413.59 ▼19.88
Posts /wp-admin/edit.php2.87 ▼0.7714.32 ▼24.88
Add New Post /wp-admin/post-new.php2.87 ▼4.1015.38 ▼1,342.35
Media Library /wp-admin/upload.php2.87 ▼0.4314.15 ▼14.73

Server storage [IO: ▲0.03MB] [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: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Tiles Marquee Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4215.83 ▼0.196.28 ▲0.372.87 ▲0.27
Dashboard /wp-admin2,895 ▲416.17 ▼0.05116.27 ▼17.18155.39 ▲0.73
Posts /wp-admin/edit.php2,694 ▲373.23 ▲0.0063.02 ▼0.34140.00 ▼3.01
Add New Post /wp-admin/post-new.php1,765 ▲1321.95 ▲0.99448.37 ▲1.04163.20 ▲6.28
Media Library /wp-admin/upload.php1,701 ▲35.52 ▲0.01148.80 ▲10.24184.55 ▼9.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5768
    register_block_type_from_metadata() was called incorrectly. Block "tiles/marquee" is declaring fontSize support in block.json file under supports.fontSize. fontSize support is now declared under supports.typography.fontSize. Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiles-marquee-block/tiles-marquee-block.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: block, marquee, blocks, gutenberg, tiles

tiles-marquee-block/tiles-marquee-block.php Passed 13 tests

The main file in "Tiles Marquee Block" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
Add a marquee to your website.

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
No dangerous file extensions were detected49 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON10039
PHP21226
CSS2002
JavaScript1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin