78% wp-list-pages-by-custom-taxonomy

Code Review | WP LIST PAGES BY CUSTOM TAXONOMY

WordPress plugin WP LIST PAGES BY CUSTOM TAXONOMY scored 78% from 54 tests.

About plugin

  • Plugin page: wp-list-pages-by-...
  • Plugin version: 1.4.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.9.5
  • WordPress version: 6.3.1
  • First release: Nov 28, 2014
  • Latest release: Apr 9, 2018
  • Number of updates: 70
  • Update frequency: every 17.6 days
  • Top authors: piccart (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active / 8,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.42ms] Passed 4 tests

This is a short check of server-side resources used by WP LIST PAGES BY CUSTOM TAXONOMY
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.11 ▼1.86
Dashboard /wp-admin3.47 ▲0.1748.81 ▼2.84
Posts /wp-admin/edit.php3.58 ▲0.2342.70 ▼1.02
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.17 ▼8.14
Media Library /wp-admin/upload.php3.39 ▲0.1635.54 ▼4.84

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_pages_by_tax
pbytax_template_version
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP LIST PAGES BY CUSTOM TAXONOMY
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.15 ▼1.131.70 ▼0.1744.60 ▼0.71
Dashboard /wp-admin2,205 ▲164.84 ▼0.10111.10 ▼9.3942.94 ▼2.30
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0335.16 ▲0.2435.40 ▲0.64
Add New Post /wp-admin/post-new.php1,516 ▼2217.64 ▼5.79640.01 ▼15.4855.59 ▲10.51
Media Library /wp-admin/upload.php1,384 ▼14.26 ▲0.0494.99 ▼15.8543.13 ▼3.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_pages_by_tax
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-list-pages-by-custom-taxonomy/templates/pbytax_template.php
    • > /wp-content/plugins/wp-list-pages-by-custom-taxonomy/pages-by-custom-tax.php
    • > /wp-content/plugins/wp-list-pages-by-custom-taxonomy/includes/pbytax_query_args.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: display_only_children in wp-content/plugins/wp-list-pages-by-custom-taxonomy/templates/pbytax_template.php on line 184

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: listing, widget, post type, recent posts, taxonomy

wp-list-pages-by-custom-taxonomy/pages-by-custom-tax.php 85% from 13 tests

"WP LIST PAGES BY CUSTOM TAXONOMY" version 1.4.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 247 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-list-pages-by-custom-taxonomy.php" instead of "pages-by-custom-tax.php")

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
Good job! No executable or dangerous file extensions detected1,070 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3166393876
CSS2194116
JavaScript25478

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity132.00
▷ Minimum class complexity132.00
▷ Maximum class complexity132.00
Average method complexity14.10
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin