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

Code Review | Add HTML Extension to Specific Pages

WordPress plugin Add HTML Extension to Specific Pages scored84%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: 6.3.1
  • 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 /3,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Add HTML Extension to Specific Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.14 ▲8.12
Dashboard /wp-admin3.32 ▼0.0248.54 ▼15.77
Posts /wp-admin/edit.php3.37 ▲0.0249.63 ▼8.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.58 ▼5.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.21 ▼5.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Add HTML Extension to Specific Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.43 ▼0.161.66 ▼0.1444.94 ▼1.98
Dashboard /wp-admin2,198 ▲215.65 ▲0.1090.02 ▲1.4839.14 ▼3.73
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0440.70 ▲1.0536.56 ▲1.82
Add New Post /wp-admin/post-new.php1,554 ▼018.59 ▲0.14620.03 ▲5.3558.48 ▲1.52
Media Library /wp-admin/upload.php1,403 ▲94.26 ▲0.07103.53 ▲4.5344.26 ▲1.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

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

Analyzing the main PHP file in "Add HTML Extension to Specific Pages" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as 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
Success! There were no dangerous files found in this plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18950

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin