10% filter-pages-by-parent-in-admin

Code Review | Filter Pages by parent in admin

WordPress plugin Filter Pages by parent in admin scored10%from 54 tests.

About plugin

  • Plugin page: filter-pages-by-p...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2011
  • Latest release: Jun 13, 2012
  • Number of updates: 19
  • Update frequency: every 13.6 days
  • Top authors: irvingswiftj (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /4,884 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/filter-pages-by-parent-in-admin/filter-pages-by-parent-in-admin.php+81
    Undefined index: post_type

Server metrics [RAM: ▼1.97MB] [CPU: ▼58.17ms] Passed 4 tests

A check of server-side resources used by Filter Pages by parent in admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.68 ▼38.94
Dashboard /wp-admin2.05 ▼1.306.96 ▼54.32
Posts /wp-admin/edit.php2.05 ▼1.317.45 ▼44.87
Add New Post /wp-admin/post-new.php2.05 ▼3.845.87 ▼94.56
Media Library /wp-admin/upload.php2.05 ▼1.185.37 ▼31.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Filter Pages by parent in admin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.40 ▲0.131.70 ▼0.2943.53 ▼0.37
Dashboard /wp-admin2,189 ▲95.58 ▼0.0885.94 ▼6.9238.02 ▼7.10
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0340.76 ▲3.0237.12 ▼0.46
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.32690.84 ▲23.6251.30 ▼1.01
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.01107.99 ▼1.0147.68 ▼3.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/filter-pages-by-parent-in-admin/filter-pages-by-parent-in-admin.php+81
    Undefined index: post_type
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just 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 is_post_type_hierarchical() in wp-content/plugins/filter-pages-by-parent-in-admin/filter-pages-by-parent-in-admin.php:81

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (The filter select box (the right most option box))
You can look at the official readme.txt

filter-pages-by-parent-in-admin/filter-pages-by-parent-in-admin.php Passed 13 tests

The entry point to "Filter Pages by parent in admin" version 1.3 is a PHP file that has certain tags in its header comment area
45 characters long description:
Filter pages in wp-admin by their parent page

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
Everything looks great! No dangerous files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP118956
XML10017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.38KB4.01KB▼ 45.62%