10% 028-ps-combine-taxonomy-children

Code Review | 028 Ps Combine Taxonomy Children

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

About plugin

  • Plugin page: 028-ps-combine-ta...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • 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,276 total downloads


Plugin footprint 58% 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/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php+54
    Undefined property: ps_combine_taxonomy_children::$_items

Server metrics [RAM: ▼2.53MB] [CPU: ▼365.30ms] Passed 4 tests

Analyzing server-side resources used by 028 Ps Combine Taxonomy Children
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.683.63 ▼56.18
Dashboard /wp-admin1.86 ▼1.553.25 ▼33.27
Posts /wp-admin/edit.php1.86 ▼1.784.67 ▼35.46
Add New Post /wp-admin/post-new.php1.86 ▼5.114.07 ▼1,336.28
Media Library /wp-admin/upload.php1.86 ▼1.443.40 ▼26.45

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 028 Ps Combine Taxonomy Children
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.18 ▲0.665.79 ▲0.052.38 ▼0.24
Dashboard /wp-admin2,885 ▲346.12 ▼0.02121.93 ▼13.49201.42 ▼25.77
Posts /wp-admin/edit.php2,685 ▼63.24 ▲0.0265.32 ▼3.39150.68 ▲2.40
Add New Post /wp-admin/post-new.php1,665 ▼716.68 ▼4.28411.08 ▼30.67206.20 ▲48.69
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.03144.86 ▼1.32243.02 ▲48.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/028-ps-combine-taxonomy-children/ps-combine-taxonomy-children.php+54
    Undefined property: ps_combine_taxonomy_children::$_items

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors 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 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Screenshots: These screenshots require images: #1 (not the plugin show category list), #2 (show closed category's children list by the plugin), #3 (open category's children)
The official readme.txt might help

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

The main file in "028 Ps Combine Taxonomy Children" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file 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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin366 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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-1.png11.37KB4.41KB▼ 61.19%
screenshot-3.png10.99KB3.87KB▼ 64.80%
screenshot-2.png4.92KB2.08KB▼ 57.64%