Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼136.23ms] Passed 4 tests
A check of server-side resources used by Create And Assign Categories For Pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 38.81 ▲4.29 |
Dashboard /wp-admin | 3.06 ▲0.01 | 40.00 ▼6.51 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.87 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 98.20 ▼533.76 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 36.12 ▼6.63 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 3.01 | 34.85 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 3.00 | 37.62 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Create And Assign Categories For Pages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.90 ▲0.35 | 8.98 ▲0.61 | 48.69 ▼4.95 |
Dashboard /wp-admin | 2,972 ▲41 | 5.85 ▼0.03 | 138.85 ▼11.07 | 119.23 ▲13.64 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.83 ▲0.01 | 76.73 ▲5.80 | 88.06 ▼8.68 |
Add New Post /wp-admin/post-new.php | 1,689 ▲6 | 18.72 ▼0.11 | 375.58 ▼6.26 | 113.81 ▼5.55 |
Media Library /wp-admin/upload.php | 1,820 ▼2 | 5.01 ▼0.01 | 167.95 ▲15.95 | 121.28 ▼8.88 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 1,836 | 2.51 | 59.48 | 80.88 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 1,920 | 2.50 | 65.29 | 97.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-and-assign-categories-for-pages/create-and-assign-categories-for-pages.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: assign category, page archive, add category, add category to wordpress page, pages...
create-and-assign-categories-for-pages/create-and-assign-categories-for-pages.php 92% from 13 tests
The primary PHP file in "Create And Assign Categories For Pages" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 250 characters long)
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
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 13 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin