84% list-yarpp-block

Code Review | List YARPP Block

WordPress plugin List YARPP Block scored 84% from 54 tests.

About plugin

  • Plugin page: list-yarpp-block
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Nov 30, 2021
  • Latest release: Oct 1, 2022
  • Number of updates: 22
  • Update frequency: every 13.9 days
  • Top authors: MarcDK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,430 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.12ms] Passed 4 tests

An overview of server-side resources used by List YARPP Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.30 ▼6.79
Dashboard /wp-admin3.32 ▲0.0249.19 ▲3.91
Posts /wp-admin/edit.php3.37 ▲0.0147.33 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.94 ▲1.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.48 ▲2.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by List YARPP Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.18 ▼1.501.80 ▼0.1338.31 ▼9.56
Dashboard /wp-admin2,209 ▲354.87 ▼0.06109.74 ▲1.8846.73 ▲1.67
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0239.38 ▼2.2335.38 ▼0.52
Add New Post /wp-admin/post-new.php6,585 ▲5,06829.17 ▲11.61832.24 ▲162.9656.42 ▲2.30
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.08100.30 ▼1.9861.36 ▲16.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/list-yarpp-block/yarpp_block.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: gutenberg, full-site-editing, yarpp, block, related posts

list-yarpp-block/yarpp_block.php 85% from 13 tests

The primary PHP file in "List YARPP Block" version 2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("list-yarpp-block.php" instead of "yarpp_block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected35,463 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON40035,091
JavaScript4814172
PHP24118109
Sass125090
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin