Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.09ms] Passed 4 tests
A check of server-side resources used by WP Category Permalink
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.31 ▼4.05 |
Dashboard /wp-admin | 3.47 ▲0.12 | 50.74 ▼10.07 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.64 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.54 ▲11.39 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.08 ▲4.17 |
Category Permalink /wp-admin/admin.php?page=wpcp_settings-menu | 3.36 | 34.41 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.34 | 35.94 |
Server storage [IO: ▲0.10MB] [DB: ▲0.31MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Category Permalink
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲96 | 14.22 ▼0.02 | 1.88 ▼0.13 | 45.58 ▼1.32 |
Dashboard /wp-admin | 2,249 ▲72 | 5.61 ▼0.04 | 101.04 ▲14.76 | 43.00 ▲5.72 |
Posts /wp-admin/edit.php | 2,180 ▲83 | 2.03 ▲0.08 | 40.29 ▲3.64 | 40.30 ▲7.20 |
Add New Post /wp-admin/post-new.php | 1,581 ▲46 | 23.04 ▲5.09 | 602.38 ▼22.67 | 64.74 ▼33.11 |
Media Library /wp-admin/upload.php | 1,454 ▲51 | 4.15 ▼0.04 | 100.61 ▲1.30 | 41.43 ▼2.42 |
Category Permalink /wp-admin/admin.php?page=wpcp_settings-menu | 931 | 2.01 | 31.64 | 31.33 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 1,063 | 2.01 | 27.73 | 36.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=meowapps-main-menu
- > Deprecated in wp-content/plugins/wp-category-permalink/common/admin.php+393
implode(): Passing glue string after array is deprecated. Swap the parameters
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-category-permalink/common/admin.php:421
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: permalink, category, woocommerce
wp-category-permalink/wp-category-permalink.php Passed 13 tests
Analyzing the main PHP file in "WP Category Permalink" version 3.4.0
89 characters long description:
Allows manual selection of a 'main' category for each post for better permalinks and SEO.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,155 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 134 | 70 | 782 |
CSS | 1 | 68 | 13 | 301 |
JavaScript | 1 | 7 | 0 | 72 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 2 | 50.00% |
▷ Concrete classes | 2 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 15 | 35.71% |
▷ Public methods | 41 | 97.62% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wpengine.png | 15.26KB | 6.67KB | ▼ 56.29% |
common/img/meowapps.png | 3.54KB | 3.59KB | 0.00% |
common/img/wpengine.png | 22.02KB | 23.25KB | 0.00% |
img/donation.png | 11.83KB | 10.53KB | ▼ 11.07% |