Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼291.68ms] Passed 4 tests
This is a short check of server-side resources used by Add .html after URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.27 ▼0.65 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.99 ▲0.10 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.63 ▼1.66 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 93.49 ▼1,164.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 26.73 ▲1.18 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add .html after URL: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲41 | 15.88 ▲0.22 | 6.39 ▲0.12 | 2.14 ▼0.03 |
Dashboard /wp-admin | 2,888 ▲30 | 5.98 ▼0.18 | 129.19 ▼9.76 | 161.55 ▲5.10 |
Posts /wp-admin/edit.php | 2,685 ▼3 | 3.24 ▲0.00 | 64.57 ▼1.51 | 138.82 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,881 ▲114 | 17.45 ▼4.72 | 407.91 ▼29.28 | 142.27 ▼15.28 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.05 | 142.53 ▼18.97 | 191.58 ▼1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/add-html-after-url/add-html-after-url.php+69
Undefined property: WP_Rewrite::$page_structure
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/add-html-after-url/add-html-after-url.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: html extension after page url, add html after page url, html after url
add-html-after-url/add-html-after-url.php Passed 13 tests
The primary PHP file in "Add .html after URL" version 1.0 is used by WordPress to initiate all plugin functionality
109 characters long description:
Plugin is used for rewrite URL by default of page name or post name with new URL add .html at the end of URLs
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
There were no executable files found in this plugin42 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 18 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin