100% post-type-listing-block-lite

Code Review | Post type listing block lite

WordPress plugin Post type listing block lite scored 100% from 54 tests.

About plugin

  • Plugin page: post-type-listing...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.9.2
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: idomit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 237 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼326.10ms] Passed 4 tests

Server-side resources used by Post type listing block lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0662.32 ▲7.27
Dashboard /wp-admin3.46 ▲0.0543.88 ▲2.09
Posts /wp-admin/edit.php3.69 ▲0.0540.14 ▼3.72
Add New Post /wp-admin/post-new.php3.29 ▼3.6831.07 ▼1,300.15
Media Library /wp-admin/upload.php3.34 ▲0.0526.15 ▼2.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post type listing block lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6115.60 ▼0.236.17 ▲0.632.92 ▲0.64
Dashboard /wp-admin2,878 ▲176.02 ▼0.16121.41 ▼16.74193.67 ▲36.99
Posts /wp-admin/edit.php2,688 ▼03.22 ▼0.0164.17 ▼2.80137.57 ▼11.42
Add New Post /wp-admin/post-new.php1,669 ▼2117.23 ▼3.64406.46 ▼23.82170.75 ▲6.54
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.05145.34 ▲12.29226.41 ▲43.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: list view block, grid-block, block, grid view block, gutenberg-block...

post-type-listing-block-lite/post-type-listing-block-lite.php Passed 13 tests

The main PHP file in "Post type listing block lite" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Custom Blocks for post to display with list and grid section with image, title, author and etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin578 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11631381
CSS1315196
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin