84% html-after-url

Code Review | html after URL

WordPress plugin html after URL scored84%from 54 tests.

About plugin

  • Plugin page: html-after-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.0
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Jul 2, 2022
  • Number of updates: 20
  • Update frequency: every 102.9 days
  • Top authors: aftabmuni (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

5,000+ active /23,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by html after URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.82 ▼3.78
Dashboard /wp-admin3.32 ▲0.0144.40 ▲1.87
Posts /wp-admin/edit.php3.37 ▲0.0147.46 ▼3.41
Add New Post /wp-admin/post-new.php5.90 ▲0.01105.59 ▲8.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.56 ▲2.36

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

Analyzing filesystem and database footprints of this plugin
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_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for html after URL
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.30 ▼1.441.76 ▼0.3337.91 ▼2.10
Dashboard /wp-admin2,209 ▲214.85 ▼0.24107.89 ▼7.9844.16 ▲0.14
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.0640.80 ▼0.4235.29 ▼0.68
Add New Post /wp-admin/post-new.php1,542 ▲918.40 ▼4.94618.04 ▼4.3169.81 ▲9.85
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0299.66 ▼7.5844.35 ▲1.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please 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 plugin_dir_url() in wp-content/plugins/html-after-url/html-after-url.php:27

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: html extension after page url, add html after page url, html after url

html-after-url/html-after-url.php Passed 13 tests

The main file in "html after URL" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Plugin is used to add .html after every URL of page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111936

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin