100% melonpan-block-post-list

Code Review | Melonpan Block - Post List

WordPress plugin Melonpan Block - Post List scored 100% from 54 tests.

About plugin

  • Plugin page: melonpan-block-po...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6
  • WordPress version: 5.8.1
  • First release: Aug 30, 2019
  • Latest release: Jan 23, 2021
  • Number of updates: 10
  • Update frequency: every 51.3 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 729 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.01MB] [CPU: ▼139.69ms] Passed 4 tests

This is a short check of server-side resources used by Melonpan Block - Post List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.64 ▲3.28
Dashboard /wp-admin3.07 ▲0.0259.69 ▲18.75
Posts /wp-admin/edit.php3.13 ▲0.0146.98 ▼9.27
Add New Post /wp-admin/post-new.php5.43 ▲0.00102.06 ▼554.98
Media Library /wp-admin/upload.php3.02 ▲0.0240.21 ▲2.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Melonpan Block - Post List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9015.88 ▲0.2111.69 ▲2.5451.00 ▼2.30
Dashboard /wp-admin2,970 ▲395.87 ▼0.21158.47 ▼11.19116.82 ▼16.87
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0183.88 ▲9.31102.20 ▲13.20
Add New Post /wp-admin/post-new.php1,687 ▲419.08 ▲3.41423.31 ▼49.88119.99 ▲1.01
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.03162.63 ▼1.86134.47 ▲6.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 shallow check for browser errors
No browser issues were found

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
6 plugin tags: block, gutenberg, block-editor, cpt, post...

melonpan-block-post-list/melonpan-block-post-list.php Passed 13 tests

This is the main PHP file of "Melonpan Block - Post List" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Block that displays a list of selected Posts and Custom post types

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
Everything looks great! No dangerous files found in this plugin98 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3232995
JavaScript10132
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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
Namespaces1
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 functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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