Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.35ms] Passed 4 tests
A check of server-side resources used by WP Better Permalinks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.91 ▼2.86 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.25 ▲2.43 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.51 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 97.66 ▲1.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.79 ▲3.28 |
WP Better Permalinks /wp-admin/options-general.php?page=wbp_admin_page | 3.28 | 30.91 |
Server storage [IO: ▲0.45MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
wbp_notice_hidden |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Better Permalinks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.32 ▼1.27 | 1.71 ▼0.34 | 44.47 ▼5.54 |
Dashboard /wp-admin | 2,217 ▲29 | 4.82 ▼1.03 | 99.95 ▼16.39 | 42.99 ▼4.13 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.01 | 35.80 ▼1.81 | 33.47 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 23.31 ▲4.95 | 573.20 ▼26.21 | 47.71 ▲1.12 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.20 ▲0.07 | 96.75 ▼2.21 | 42.36 ▲0.64 |
WP Better Permalinks /wp-admin/options-general.php?page=wbp_admin_page | 932 | 2.02 | 22.90 | 68.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-better-permalinks/resources/components/settings/post-types.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-better-permalinks/resources/components/widgets/support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/wp-better-permalinks/resources/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-better-permalinks/resources/components/widgets/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-better-permalinks/resources/components/notices/thanks.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-better-permalinks/resources/components/widgets/donate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-better-permalinks/wp-better-permalinks.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-better-permalinks/resources/components/widgets/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
5 plugin tags: taxonomy term permalinks, custom post type permalinks, friendly permalinks, permalinks tree, permalinks structure
wp-better-permalinks/wp-better-permalinks.php 92% from 13 tests
The main PHP file in "WP Better Permalinks" ver. 4.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,592 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 412 | 248 | 1,585 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.32 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 16 | 13.01% |
▷ Public methods | 103 | 83.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 16.26% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin