Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼295.02ms] Passed 4 tests
An overview of server-side resources used by Add Tags And Category To Page and Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 54.45 ▲4.55 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.65 ▼0.78 |
Posts /wp-admin/edit.php | 3.67 ▲0.02 | 39.74 ▲4.07 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 95.46 ▼1,176.05 |
Media Library /wp-admin/upload.php | 3.32 ▲0.01 | 24.29 ▼7.33 |
Add Tags And Category /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php | 3.29 | 25.45 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Tags And Category To Page and Post Types
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲44 | 16.19 ▲0.57 | 7.51 ▲1.89 | 2.38 ▼0.28 |
Dashboard /wp-admin | 2,893 ▲32 | 6.13 ▼0.05 | 121.40 ▼13.04 | 156.69 ▼2.03 |
Posts /wp-admin/edit.php | 2,690 ▼4 | 3.23 ▲0.00 | 64.52 ▼0.53 | 140.10 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,664 ▼88 | 16.08 ▼4.74 | 397.56 ▼67.67 | 159.26 ▼4.49 |
Media Library /wp-admin/upload.php | 1,697 ▼4 | 5.50 ▼0.00 | 144.76 ▲0.09 | 191.68 ▼4.59 |
Add Tags And Category /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php | 1,343 | 2.44 | 55.58 | 100.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php
- > Notice in wp-content/plugins/add-tags-and-category-to-page/includes/tcp_post_type_select.php+2
Undefined index: submit-tcp-select
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/add-tags-and-category-to-page/includes/tcp_footer.php
- > /wp-content/plugins/add-tags-and-category-to-page/includes/tcp_header.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-tags-and-category-to-page/add-tags-and-category-to-page.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-tags-and-category-to-page/plugin_interface.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-tags-and-category-to-page/includes/tcp_post_type_select.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Admin Setting)
- Requires at least: Invalid plugin version format
add-tags-and-category-to-page/add-tags-and-category-to-page.php Passed 13 tests
"Add Tags And Category To Page and Post Types" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
This plugin adds tags and category to wordpress pages and post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin240 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 23 | 240 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.22MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 226.26KB | 37.72KB | ▼ 83.33% |