84% block-fancy-list-item

Code Review | Block Fancy List Item

WordPress plugin Block Fancy List Item scored84%from 54 tests.

About plugin

  • Plugin page: block-fancy-list-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Dec 14, 2018
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: jankimoradiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.97ms] Passed 4 tests

An overview of server-side resources used by Block Fancy List Item
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0639.56 ▼0.40
Dashboard /wp-admin3.36 ▲0.0546.50 ▼3.35
Posts /wp-admin/edit.php3.48 ▲0.1349.52 ▲8.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.52 ▼0.64
Media Library /wp-admin/upload.php3.28 ▲0.0646.70 ▲11.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Block Fancy List Item
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲24221.20 ▲6.454.73 ▲2.9036.60 ▼7.44
Dashboard /wp-admin2,294 ▲10610.82 ▲4.94267.37 ▲149.5945.24 ▲1.89
Posts /wp-admin/edit.php2,179 ▲9010.50 ▲8.4492.46 ▲53.3136.13 ▼0.60
Add New Post /wp-admin/post-new.php1,675 ▲15521.99 ▼1.11516.13 ▼89.8230.72 ▼23.65
Media Library /wp-admin/upload.php1,497 ▲10910.97 ▲6.82158.32 ▲63.5545.16 ▲5.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/block-fancy-list-item/public/partials/block-fancy-list-item-public-display.php
    • > /wp-content/plugins/block-fancy-list-item/admin/partials/block-fancy-list-item-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

block-fancy-list-item/block-fancy-list-item.php Passed 13 tests

"Block Fancy List Item" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
This Plugin is use for extend gutenberg core listing block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,168 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23237521,001
PHP12117535166
CSS2041

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin