89% add-html-extension-to-pages

Code Review | Add .html Extension to Pages

WordPress plugin Add .html Extension to Pages scored89%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: 6.3.1
  • 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

900+ active /3,797 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Add .html Extension to Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.70 ▼3.83
Dashboard /wp-admin3.33 ▲0.0252.36 ▼2.32
Posts /wp-admin/edit.php3.38 ▲0.0252.46 ▼3.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.86 ▼6.82
Media Library /wp-admin/upload.php3.25 ▲0.0235.36 ▼2.94

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/add-html-extension-to-pages/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Add .html Extension to Pages: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.26 ▼1.121.64 ▼0.8245.21 ▲2.11
Dashboard /wp-admin2,221 ▲155.79 ▲0.8898.70 ▼4.3239.35 ▼6.34
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0536.38 ▼3.6939.45 ▼0.38
Add New Post /wp-admin/post-new.php1,545 ▲1923.14 ▲5.54662.86 ▼20.7660.03 ▲3.29
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0298.13 ▼18.1544.01 ▼3.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

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
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (.html extension added to page URL.)
Please take inspiration from this readme.txt

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

This is the main PHP file of "Add .html Extension to Pages" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • 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 review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin63 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2225963

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods342.86%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin