84% page-list

Code Review | Page-list

WordPress plugin Page-list scored84%from 54 tests.

About plugin

  • Plugin page: page-list
  • Plugin version: 5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2011
  • Latest release: Apr 28, 2023
  • Number of updates: 103
  • Update frequency: every 42.6 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

84 reviews

Install metrics

50,000+ active /407,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.63ms] Passed 4 tests

A check of server-side resources used by Page-list
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.15 ▼0.17
Dashboard /wp-admin3.36 ▲0.0648.85 ▼3.82
Posts /wp-admin/edit.php3.41 ▲0.0649.39 ▼0.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.36 ▼13.38
Media Library /wp-admin/upload.php3.28 ▲0.0636.64 ▼4.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Page-list
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.181.77 ▼0.1240.39 ▼4.10
Dashboard /wp-admin2,198 ▲185.62 ▼0.2590.06 ▼2.4242.91 ▼0.92
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0635.13 ▼4.3438.94 ▼0.87
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.53610.71 ▼77.4658.28 ▲1.96
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.00100.60 ▼1.0343.87 ▲0.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 | 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/page-list/page-list.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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 ([pagelist] shortcode), #2 ([pagelist_ext] shortcode)
The official readme.txt is a good inspiration

page-list/page-list.php Passed 13 tests

The main PHP file in "Page-list" ver. 5.6 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin492 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14321434
CSS14858

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.53KB12.12KB▼ 48.51%
screenshot-2.png70.10KB31.70KB▼ 54.77%