10% 028-ps-combine-taxonomy-children

Code Review | 028 Ps Combine Taxonomy Children

WordPress plugin 028 Ps Combine Taxonomy Children scored10%from 54 tests.

About plugin

  • Plugin page: 028-ps-combine-ta...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Dec 25, 2012
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: ouhinit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,575 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
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php+54
    Undefined property: ps_combine_taxonomy_children::$_items

Server metrics [RAM: ▼1.85MB] [CPU: ▼56.06ms] Passed 4 tests

Server-side resources used by 028 Ps Combine Taxonomy Children
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.13 ▼34.84
Dashboard /wp-admin2.17 ▼1.186.58 ▼48.40
Posts /wp-admin/edit.php2.17 ▼1.196.98 ▼35.64
Add New Post /wp-admin/post-new.php2.17 ▼3.726.17 ▼105.36
Media Library /wp-admin/upload.php2.17 ▼1.067.08 ▼27.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by 028 Ps Combine Taxonomy Children
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.741.66 ▼0.2442.28 ▼1.18
Dashboard /wp-admin2,206 ▲185.80 ▼0.0794.68 ▼7.3138.68 ▼2.12
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0139.51 ▼1.6435.48 ▲0.41
Add New Post /wp-admin/post-new.php1,518 ▼2417.68 ▼0.65662.54 ▲43.8752.26 ▲1.85
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0394.34 ▼5.2446.73 ▲4.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php+54
    Undefined property: ps_combine_taxonomy_children::$_items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php on line 122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php:234

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (not the plugin show category list), #2 (show closed category's children list by the plugin), #3 (open category's children)
Please take inspiration from this readme.txt

028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php 92% from 13 tests

The principal PHP file in "028 Ps Combine Taxonomy Children" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("028-ps-combine-taxonomy-children.php" instead of "ps-combine-taxonomy-children.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin366 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP478265292
JavaScript213947
CSS24027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png4.92KB2.08KB▼ 57.64%
screenshot-3.png10.99KB3.87KB▼ 64.80%
screenshot-1.png11.37KB4.41KB▼ 61.19%