94% add-html-extension-to-specific-pages

Code Review | Add HTML Extension to Specific Pages

WordPress plugin Add HTML Extension to Specific Pages scored 94% from 54 tests.

About plugin

  • Plugin page: add-html-extensio...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.0.1
  • WordPress version: 5.9.2
  • First release: Nov 20, 2014
  • Latest release: Nov 21, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: CherryAnt.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,968 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼287.51ms] Passed 4 tests

Analyzing server-side resources used by Add HTML Extension to Specific Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0258.52 ▲5.69
Dashboard /wp-admin3.42 ▲0.0235.35 ▼0.08
Posts /wp-admin/edit.php3.65 ▲0.0138.68 ▲1.98
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.45 ▼1,156.95
Media Library /wp-admin/upload.php3.30 ▲0.0138.17 ▲5.02

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Add HTML Extension to Specific Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲2915.97 ▲0.395.98 ▲0.052.39 ▲0.41
Dashboard /wp-admin2,881 ▲276.12 ▼0.09121.31 ▼17.57164.86 ▼2.76
Posts /wp-admin/edit.php2,672 ▼223.25 ▲0.0179.57 ▼2.54145.63 ▼2.94
Add New Post /wp-admin/post-new.php1,661 ▲616.27 ▼4.32441.90 ▼10.93157.81 ▲3.14
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.04154.90 ▲16.72194.39 ▲6.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/add-html-extension-to-specific-pages/add-html-extension-specific-pages.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

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

The principal PHP file in "Add HTML Extension to Specific Pages" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-html-extension-to-specific-pages.php" instead of "add-html-extension-specific-pages.php")

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 plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
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 functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin