84% list-pages-shortcode

Code Review | List Pages Shortcode

WordPress plugin List Pages Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: list-pages-shortcode
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2009
  • Latest release: Feb 21, 2023
  • Number of updates: 56
  • Update frequency: every 91.1 days
  • Top authors: husobj (92.86%)aaron_guitar (8.93%)

Code review

54 tests

User reviews

14 reviews

Install metrics

8,000+ active / 114,387 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.16ms] Passed 4 tests

This is a short check of server-side resources used by List Pages Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.53 ▼1.55
Dashboard /wp-admin3.36 ▲0.0545.59 ▼6.12
Posts /wp-admin/edit.php3.41 ▲0.0547.42 ▼0.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.32 ▲3.40
Media Library /wp-admin/upload.php3.28 ▲0.0535.83 ▲3.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for List Pages Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.25 ▼1.051.96 ▼0.1244.55 ▼7.01
Dashboard /wp-admin2,206 ▲184.85 ▼1.0695.13 ▼23.7738.94 ▼2.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0137.24 ▲2.1236.33 ▲2.12
Add New Post /wp-admin/post-new.php1,542 ▲2318.59 ▼4.35639.87 ▼10.9760.21 ▲0.97
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0394.95 ▼6.8441.61 ▼2.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/list-pages-shortcode/list-pages-shortcode.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: child pages, subpages, pages, shortcodes, sibling pages...

list-pages-shortcode/list-pages-shortcode.php 92% from 13 tests

The main file in "List Pages Shortcode" v. 1.7.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 480 characters long)

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 detected228 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18474228

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.50
▷ Minimum class complexity16.00
▷ Maximum class complexity27.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1168.75%
▷ Public methods956.25%
▷ Protected methods743.75%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin