Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼296.90ms] Passed 4 tests
An overview of server-side resources used by add .html in URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 57.27 ▲6.46 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.53 ▲1.23 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.18 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 93.46 ▼1,185.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.94 ▼2.38 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for add .html in URL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲42 | 15.90 ▲0.29 | 5.94 ▼0.01 | 2.67 ▲0.11 |
Dashboard /wp-admin | 2,895 ▲40 | 6.16 ▼0.16 | 119.11 ▼15.90 | 155.63 ▼8.36 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.13 | 66.29 ▲0.97 | 153.31 ▲11.91 |
Add New Post /wp-admin/post-new.php | 1,668 ▼22 | 18.52 ▼3.41 | 398.46 ▼35.81 | 151.41 ▼4.36 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.55 ▲0.02 | 133.71 ▼12.17 | 185.47 ▼12.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/add-html-in-url/add-html-in-url.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is missing
- Contributors: There were no tags found
- Screenshots: These screenshots do not have images: #1 (Configuring Permalinks), #2 (before this plugin URL), #3 (after this plugin URL)
add-html-in-url/add-html-in-url.php 92% from 13 tests
The principal PHP file in "add .html in URL" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin36 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 10 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 32.97KB | 10.27KB | ▼ 68.86% |
screenshot-3.png | 25.24KB | 7.72KB | ▼ 69.40% |
screenshot-1.png | 43.26KB | 17.26KB | ▼ 60.11% |