Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 3.63 ▼56.18 |
Dashboard /wp-admin | 1.86 ▼1.55 | 3.25 ▼33.27 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.67 ▼35.46 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.07 ▼1,336.28 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.18 ▲0.66 | 5.79 ▲0.05 | 2.38 ▼0.24 |
Dashboard /wp-admin | 2,885 ▲34 | 6.12 ▼0.02 | 121.93 ▼13.49 | 201.42 ▼25.77 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.24 ▲0.02 | 65.32 ▼3.39 | 150.68 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,665 ▼7 | 16.68 ▼4.28 | 411.08 ▼30.67 | 206.20 ▲48.69 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.03 | 144.86 ▼1.32 | 243.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
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 78 | 265 | 292 |
JavaScript | 2 | 13 | 9 | 47 |
CSS | 2 | 4 | 0 | 27 |
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 code | 0.45 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.37KB | 4.41KB | ▼ 61.19% |
screenshot-3.png | 10.99KB | 3.87KB | ▼ 64.80% |
screenshot-2.png | 4.92KB | 2.08KB | ▼ 57.64% |