84% recent-posts-columns-block

Code Review | Recent Posts Columns Block

WordPress plugin Recent Posts Columns Block scored 84% from 54 tests.

About plugin

  • Plugin page: recent-posts-colu...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2023
  • Latest release: Sep 5, 2023
  • Number of updates: 3
  • Update frequency: every 29.3 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 78 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.12MB] [CPU: ▼18.53ms] Passed 4 tests

An overview of server-side resources used by Recent Posts Columns Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0238.37 ▼14.08
Dashboard /wp-admin3.31 ▲0.0146.75 ▼12.98
Posts /wp-admin/edit.php3.37 ▼0.4848.29 ▼14.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.12 ▼33.00
Media Library /wp-admin/upload.php3.24 ▲0.0039.44 ▲6.32

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Recent Posts Columns Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.29 ▼0.931.60 ▼0.1141.70 ▼5.74
Dashboard /wp-admin2,203 ▲185.82 ▼0.09108.04 ▼8.9337.66 ▼11.00
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.39 ▲3.5235.48 ▼1.72
Add New Post /wp-admin/post-new.php6,583 ▲5,05029.28 ▲6.58916.09 ▲241.6952.97 ▼2.24
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0195.08 ▼11.9044.48 ▼9.32

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-posts-columns-block/recent-posts-columns-block.php:198

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Add new 'Recent Posts Columns Block ' Block), #2 ('Recent Posts Columns Block ' Block), #3 (Recent Posts Columns Block)
The official readme.txt is a good inspiration

recent-posts-columns-block/recent-posts-columns-block.php 92% from 13 tests

The main PHP file in "Recent Posts Columns Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 489 characters long)

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 plugin348 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript180154
PHP13642121
CSS213673

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin