84% paged-post-list-shortcode

Code Review | Paged Post List Shortcode

WordPress plugin Paged Post List Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: paged-post-list-s...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: May 1, 2018
  • Latest release: May 1, 2018
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: petebofs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 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.04MB] [CPU: ▼5.60ms] Passed 4 tests

This is a short check of server-side resources used by Paged Post List Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.59 ▼5.36
Dashboard /wp-admin3.36 ▲0.0149.30 ▼16.16
Posts /wp-admin/edit.php3.41 ▲0.0550.08 ▼0.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.73 ▼0.56
Media Library /wp-admin/upload.php3.28 ▲0.0538.59 ▲3.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Paged Post List Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.37 ▲0.021.94 ▲0.0938.92 ▼4.20
Dashboard /wp-admin2,192 ▲185.61 ▲0.0286.23 ▼11.6240.81 ▼0.31
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0138.68 ▼2.7434.46 ▼7.58
Add New Post /wp-admin/post-new.php1,531 ▲423.28 ▲0.09673.28 ▲12.3552.74 ▼0.89
Media Library /wp-admin/upload.php1,394 ▼64.27 ▲0.1297.77 ▼2.6041.43 ▼2.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 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/paged-post-list-shortcode/paged_post_list_shortcode.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 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
8 plugin tags: posts, display, pagination, show, query...

paged-post-list-shortcode/paged_post_list_shortcode.php 92% from 13 tests

The principal PHP file in "Paged Post List Shortcode" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("paged-post-list-shortcode.php" instead of "paged_post_list_shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin337 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1430337

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
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