84% add-html-after-url

Code Review | Add .html after URL

WordPress plugin Add .html after URL scored 84% from 54 tests.

About plugin

  • Plugin page: add-html-after-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.4
  • WordPress version: 5.9.2
  • First release: Sep 7, 2020
  • Latest release: Sep 7, 2020
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: nghialuu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 233 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.27 ▼0.65
Dashboard /wp-admin3.42 ▲0.0132.99 ▲0.10
Posts /wp-admin/edit.php3.65 ▲0.0136.63 ▼1.66
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.49 ▼1,164.52
Media Library /wp-admin/upload.php3.30 ▲0.0126.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲4115.88 ▲0.226.39 ▲0.122.14 ▼0.03
Dashboard /wp-admin2,888 ▲305.98 ▼0.18129.19 ▼9.76161.55 ▲5.10
Posts /wp-admin/edit.php2,685 ▼33.24 ▲0.0064.57 ▼1.51138.82 ▼5.01
Add New Post /wp-admin/post-new.php1,881 ▲11417.45 ▼4.72407.91 ▼29.28142.27 ▼15.28
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.05142.53 ▼18.97191.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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