78% latest-posts-block-lite

Code Review | Latest Posts Block Lite - A Collection of Beautiful WordPress Posts Gutenberg Blocks

WordPress plugin Latest Posts Block Lite - A Collection of Beautiful WordPress Posts Gutenberg Blocks scored78%from 54 tests.

About plugin

  • Plugin page: latest-posts-bloc...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 17, 2020
  • Latest release: Sep 4, 2023
  • Number of updates: 14
  • Update frequency: every 77.3 days
  • Top authors: afthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /152,312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Latest Posts Block Lite - A Collection of Beautiful WordPress Posts Gutenberg Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2937.46 ▼1.70
Dashboard /wp-admin3.57 ▲0.2744.04 ▼10.82
Posts /wp-admin/edit.php3.69 ▲0.3357.96 ▲12.33
Add New Post /wp-admin/post-new.php5.11 ▼0.7852.69 ▼41.88
Media Library /wp-admin/upload.php3.50 ▲0.2734.05 ▼0.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Latest Posts Block Lite - A Collection of Beautiful WordPress Posts Gutenberg Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.20 ▼1.041.63 ▼0.2545.58 ▲5.95
Dashboard /wp-admin2,207 ▲185.82 ▼0.11101.74 ▼17.2041.54 ▼3.90
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0438.86 ▲5.4638.07 ▲0.13
Add New Post /wp-admin/post-new.php6,595 ▲5,05923.54 ▲0.30842.83 ▲178.6249.50 ▼12.35
Media Library /wp-admin/upload.php1,395 ▲104.19 ▲0.0297.72 ▼0.9144.26 ▼0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/latest-posts-block-lite/latest-posts-block-lite.php
    • > /wp-content/plugins/latest-posts-block-lite/src/init.php
  • 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/latest-posts-block-lite/src/blocks/latest-posts-block/index.php:375

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
Please take inspiration from this readme.txt

latest-posts-block-lite/latest-posts-block-lite.php 92% from 13 tests

The main PHP script in "Latest Posts Block Lite - A Collection of Beautiful WordPress Posts Gutenberg Blocks" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,103 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG30124,482
CSS14663441,885
PHP4441961,170
JSON130425
JavaScript10162141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity15.50
▷ Minimum class complexity8.00
▷ Maximum class complexity23.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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