Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼9.79ms] Passed 4 tests
This is a short check of server-side resources used by Post Type URL Changer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.39 ▼6.29 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.92 ▼1.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.08 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.74 | 67.52 ▼27.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.73 ▲2.98 |
Post Type URL Changer /wp-admin/options-general.php?page=post_type_url_changer | 3.20 | 29.39 |
Server storage [IO: ▲0.01MB] [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: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
um_post_type_url_changer_post_types |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Type URL Changer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.17 ▼1.21 | 1.63 ▼0.03 | 36.98 ▼3.37 |
Dashboard /wp-admin | 2,212 ▲20 | 5.85 ▲0.90 | 104.36 ▲1.61 | 42.78 ▼0.15 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▲0.02 | 33.58 ▼0.22 | 34.23 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.08 ▼5.12 | 635.70 ▼27.94 | 55.58 ▼4.38 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▼0.02 | 94.04 ▼16.40 | 43.44 ▼6.10 |
Post Type URL Changer /wp-admin/options-general.php?page=post_type_url_changer | 804 | 2.05 | 23.94 | 24.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- um_post_type_url_changer_post_types
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× 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/post-type-url-changer/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-url-changer/metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/post-type-url-changer/url_injector.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-type-url-changer/index.php:13
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== post-type-url-changer ===
)
post-type-url-changer/index.php 85% from 13 tests
The main PHP script in "Post Type URL Changer" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-type-url-changer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected68 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 8 | 17 | 57 |
Markdown | 1 | 3 | 0 | 8 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin