Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼294.64ms] Passed 4 tests
This is a short check of server-side resources used by Add Categories to Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.26 ▲4.97 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.04 ▼1.07 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.58 ▲0.38 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.07 | 93.41 ▼1,182.41 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 29.34 ▲4.54 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 3.29 | 27.75 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
Checking browser requirements for Add Categories to Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲66 | 16.01 ▲0.36 | 5.67 ▲0.02 | 2.18 ▼0.09 |
Dashboard /wp-admin | 2,893 ▲35 | 6.15 ▲0.02 | 118.04 ▼21.57 | 151.91 ▼8.28 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.01 | 61.56 ▼4.29 | 141.55 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,761 ▲100 | 21.96 ▲5.51 | 428.11 ▼6.29 | 151.22 ▼2.50 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.49 ▼0.04 | 143.91 ▼3.22 | 185.29 ▼3.59 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 1,881 | 2.77 | 55.51 | 132.65 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- category_children
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-categories-to-pages/add-categories-to-pages.php:20
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were detected
add-categories-to-pages/add-categories-to-pages.php Passed 13 tests
"Add Categories to Pages" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
With this plugin you can finally add categories to pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 4 | 14 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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
PNG images were not found in this plugin