99% add-html-extension-to-pages

Code Review | Add .html Extension to Pages

WordPress plugin Add .html Extension to Pages scored 99% from 54 tests.

About plugin

  • Plugin page: add-html-extensio...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.9
  • WordPress version: 5.9.2
  • First release: Mar 31, 2021
  • Latest release: Feb 18, 2022
  • Number of updates: 4
  • Update frequency: every 81.0 days
  • Top authors: subodhghulaxe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,360 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼348.38ms] Passed 4 tests

Server-side resources used by Add .html Extension to Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0360.41 ▲2.54
Dashboard /wp-admin3.44 ▲0.0333.99 ▲0.72
Posts /wp-admin/edit.php3.66 ▲0.0239.12 ▲3.64
Add New Post /wp-admin/post-new.php6.90 ▼0.0796.53 ▼1,398.97
Media Library /wp-admin/upload.php3.31 ▲0.0226.36 ▲2.18

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add .html Extension to Pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲915.79 ▲0.195.74 ▼0.841.99 ▼0.51
Dashboard /wp-admin2,892 ▲346.13 ▼0.08176.87 ▲30.04172.97 ▲1.20
Posts /wp-admin/edit.php2,691 ▲63.22 ▼0.0069.48 ▲3.75145.35 ▼80.85
Add New Post /wp-admin/post-new.php1,743 ▲10821.23 ▲2.10454.80 ▼3.13157.83 ▲11.69
Media Library /wp-admin/upload.php1,694 ▼45.52 ▼0.01179.80 ▲38.52189.37 ▲0.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (.html extension added to page URL.) image missing
The official readme.txt might help

add-html-extension-to-pages/AHETP.php 92% from 13 tests

The principal PHP file in "Add .html Extension to Pages" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("add-html-extension-to-pages.php" instead of "AHETP.php")

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
Success! There were no dangerous files found in this plugin63 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods342.86%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected