Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+65
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.72MB] [CPU: ▼46.37ms] Passed 4 tests
An overview of server-side resources used by WP Page Permalink Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 8.44 ▼32.10 |
Dashboard /wp-admin | 2.28 ▼1.02 | 11.24 ▼35.70 |
Posts /wp-admin/edit.php | 2.28 ▼1.07 | 10.43 ▼36.62 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 10.55 ▼81.05 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 9.30 ▼26.07 |
WP Page Extension /wp-admin/options-general.php?page=wp-page-permalink-extension | 2.28 | 10.38 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cwpp_plugin_installed_time |
db_upgraded |
cwpp_plugin_installed_time_donate |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Page Permalink Extension
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.28 | 1.57 ▼0.53 | 36.82 ▼13.49 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.03 | 98.58 ▼19.74 | 39.22 ▼3.98 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.02 | 39.53 ▲1.85 | 37.07 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.41 ▼5.88 | 605.26 ▼76.07 | 57.06 ▼3.24 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.03 | 97.25 ▼1.05 | 44.64 ▲1.40 |
WP Page Extension /wp-admin/options-general.php?page=wp-page-permalink-extension | 1,133 | 2.02 | 29.29 | 70.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+99
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- cwpp_plugin_installed_time_donate
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-page-permalink-extension
- > Notice in wp-content/plugins/change-wp-page-permalinks/change-wp-page-permalinks.php+99
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 6× 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/change-wp-page-permalinks/includes/media.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/change-wp-page-permalinks/admin/settings-page.php:16
- > PHP Warning
Use of undefined constant CWPP_PLUGIN_VERSION - assumed 'CWPP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/change-wp-page-permalinks/admin/settings-page.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-page-permalinks/admin/donate.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-wp-page-permalinks/admin/notice.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/change-wp-page-permalinks/includes/trailing-slash.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: page url, page extension, page permalink, page permalinks, permalink...
change-wp-page-permalinks/change-wp-page-permalinks.php Passed 13 tests
The primary PHP file in "WP Page Permalink Extension" version 1.5.4 is used by WordPress to initiate all plugin functionality
137 characters long description:
WP Page Permalink Extension plugin will help you to add anything like .html, .php, .aspx, .htm, .asp, .shtml as WordPress Page Extention.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin864 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 128 | 135 | 557 |
CSS | 2 | 21 | 0 | 157 |
SVG | 1 | 0 | 0 | 99 |
JavaScript | 2 | 0 | 0 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin