84% display-posts-shortcode

Code Review | Display Posts - Easy lists, grids, navigation, and more

WordPress plugin Display Posts - Easy lists, grids, navigation, and more scored84%from 54 tests.

About plugin

  • Plugin page: display-posts-sho...
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2011
  • Latest release: Jul 20, 2023
  • Number of updates: 65
  • Update frequency: every 67.9 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

160 reviews

Install metrics

100,000+ active /1,072,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.03ms] Passed 4 tests

Analyzing server-side resources used by Display Posts - Easy lists, grids, navigation, and more
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.73 ▼3.34
Dashboard /wp-admin3.39 ▲0.0552.17 ▼13.68
Posts /wp-admin/edit.php3.44 ▲0.0953.36 ▼0.89
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.26 ▼26.22
Media Library /wp-admin/upload.php3.31 ▲0.0941.48 ▲2.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Display Posts - Easy lists, grids, navigation, and more
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.361.81 ▲0.2544.21 ▲1.22
Dashboard /wp-admin2,221 ▲155.87 ▼0.04111.95 ▲9.4942.23 ▼4.62
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0333.79 ▼8.6634.95 ▼0.16
Add New Post /wp-admin/post-new.php1,545 ▼023.16 ▲0.06674.15 ▲64.5154.05 ▲6.70
Media Library /wp-admin/upload.php1,403 ▲94.34 ▲0.11109.43 ▲8.6648.50 ▲3.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/display-posts-shortcode/display-posts-shortcode.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: display, list, posts, page, shortcode...

display-posts-shortcode/display-posts-shortcode.php Passed 13 tests

This is the main PHP file of "Display Posts - Easy lists, grids, navigation, and more" version 3.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Display a listing of posts using the [display-posts] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin729 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1103237553
Markdown2460176

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions7
▷ Named functions7100.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
No PNG files were detected