93% show-pages-list

Code Review | Show Pages List

WordPress plugin Show Pages List scored 93% from 53 tests.

About plugin

  • Plugin page: show-pages-list
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Jan 26, 2015
  • Latest release: Dec 8, 2015
  • Number of updates: 9
  • Update frequency: every 35.3 days
  • Top authors: LIJE (100%)

Code review

53 tests

User reviews

3 reviews

Install metrics

200+ active / 2,041 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼264.33ms] Passed 4 tests

A check of server-side resources used by Show Pages List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1229.82 ▲4.48
Dashboard /wp-admin3.06 ▲0.0145.59 ▲6.48
Posts /wp-admin/edit.php3.11 ▲0.0145.09 ▲1.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.93 ▼1,043.29
Media Library /wp-admin/upload.php3.00 ▼0.0034.61 ▼20.09
Show Pages List /wp-admin/options-general.php?page=showpageslist3.0238.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Show Pages List: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲10316.18 ▲0.618.65 ▲1.1045.94 ▼2.99
Dashboard /wp-admin2,963 ▲1135.88 ▼0.00135.26 ▲9.55109.57 ▲7.87
Posts /wp-admin/edit.php2,710 ▲42.69 ▲0.0066.29 ▼1.7792.00 ▼3.42
Add New Post /wp-admin/post-new.php1,486 ▼16718.48 ▼0.00373.10 ▲4.47113.80 ▲2.36
Media Library /wp-admin/upload.php1,782 ▲105.02 ▲0.03155.85 ▼19.80112.19 ▼4.24
Show Pages List /wp-admin/options-general.php?page=showpageslist1,0562.3360.7468.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/show-pages-list/admin/partials/show-pages-list-admin-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt might help

show-pages-list/show-pages-list.php 85% from 13 tests

Analyzing the main PHP file in "Show Pages List" version 1.2.0
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin279 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP981357207
JavaScript233869
CSS1033

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin