90% child-page-tree

Code Review | Child Page Tree

WordPress plugin Child Page Tree scored90%from 54 tests.

About plugin

  • Plugin page: child-page-tree
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Aug 15, 2015
  • Latest release: Apr 12, 2016
  • Number of updates: 9
  • Update frequency: every 26.8 days
  • Top authors: obstschale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,162 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.50ms] Passed 4 tests

A check of server-side resources used by Child Page Tree
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.78 ▼15.92
Dashboard /wp-admin3.34 ▼0.0145.75 ▼13.88
Posts /wp-admin/edit.php3.39 ▲0.0346.87 ▼0.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.63 ▼10.07
Media Library /wp-admin/upload.php3.26 ▲0.0332.46 ▼2.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Child Page Tree
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.17 ▼0.261.84 ▼0.3043.95 ▼12.84
Dashboard /wp-admin2,189 ▲125.51 ▼0.0291.55 ▲2.8539.22 ▼3.23
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0738.84 ▲3.1435.64 ▼1.74
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▼0.04683.51 ▼8.0562.86 ▲6.98
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0493.58 ▼0.2744.22 ▼1.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid url: "[PayPal Donation](http://bit.ly/hhb-paypal)"
You can take inspiration from this readme.txt

child-page-tree/child-page-tree.php Passed 13 tests

This is the main PHP file of "Child Page Tree" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Small Plugin, which can add a page tree of all child pages of a specific page

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
Good job! No executable or dangerous file extensions detected205 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP361118138
CSS17034
PO File15533

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.50
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected