Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼11.82ms] Passed 4 tests
An overview of server-side resources used by Custom Category/Post Type Post order
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.97 ▲0.13 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.83 ▲4.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.41 ▲4.23 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 34.58 ▼50.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.21 ▼1.32 |
Permission /wp-admin/admin.php?page=subccpo | 3.19 | 30.65 |
Post Order /wp-admin/admin.php?page=ccpo | 3.19 | 32.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_ccpo_post_order_rel |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
category_children |
db_upgraded |
ccpo_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Category/Post Type Post order
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.75 ▼0.60 | 9.14 ▲6.79 | 37.26 ▼0.53 |
Dashboard /wp-admin | 2,227 ▲39 | 5.87 ▲0.98 | 102.37 ▼15.21 | 37.10 ▼6.51 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.08 ▲0.02 | 38.61 ▼2.86 | 36.62 ▼1.92 |
Add New Post /wp-admin/post-new.php | 6,225 ▲4,697 | 26.38 ▲8.02 | 900.86 ▲267.68 | 36.99 ▼19.12 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.17 ▼0.02 | 94.87 ▼7.78 | 42.62 ▼2.48 |
Permission /wp-admin/admin.php?page=subccpo | 850 | 1.80 | 26.06 | 24.21 |
Post Order /wp-admin/admin.php?page=ccpo | 879 | 1.84 | 29.12 | 30.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_ccpo_post_order_rel
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- category_children
- theysaidso_admin_options
Smoke tests 50% 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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=subccpo
- > Notice in wp-content/plugins/custom-post-order-category/wp-customcategorypostorder.php+60
Undefined index: role
- > GET request to /wp-admin/admin.php?page=ccpo
- > Notice in wp-content/plugins/custom-post-order-category/wp-customcategorypostorder.php+122
Undefined index: category
- > GET request to /wp-admin/admin.php?page=ccpo
- > Notice in wp-content/plugins/custom-post-order-category/wp-customcategorypostorder.php+240
Undefined variable: order_result
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-order-category/wp-customcategorypostorder.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: custom post order, custom post order by custom post type, drag drop interface of ordering posts by category or post type, post order, custom post order by category
custom-post-order-category/wp-customcategorypostorder.php 92% from 13 tests
"Custom Category/Post Type Post order" version 1.5.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-post-order-category.php" instead of "wp-customcategorypostorder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin465 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 142 | 20 | 465 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 55.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin