89% html-for-all-url

Code Review | .html for all url

WordPress plugin .html for all url scored89%from 54 tests.

About plugin

  • Plugin page: html-for-all-url
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Jul 28, 2017
  • Latest release: Aug 3, 2017
  • Number of updates: 19
  • Update frequency: every 2.6 days
  • Top authors: 1naveengiri (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▲4.20ms] Passed 4 tests

This is a short check of server-side resources used by .html for all url
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0965.00 ▲27.42
Dashboard /wp-admin3.39 ▲0.0951.15 ▲0.15
Posts /wp-admin/edit.php3.49 ▲0.1353.62 ▲7.70
Add New Post /wp-admin/post-new.php5.97 ▲0.0999.54 ▲3.78
Media Library /wp-admin/upload.php3.31 ▲0.0941.88 ▲5.15
.html For All /wp-admin/options-general.php?page=hfa-settings3.2836.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for .html for all url
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.31 ▼1.072.29 ▲0.5848.24 ▲8.02
Dashboard /wp-admin2,215 ▲244.87 ▼1.16107.40 ▲4.7138.54 ▼0.58
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0439.81 ▲3.6234.06 ▲2.31
Add New Post /wp-admin/post-new.php1,534 ▲2023.37 ▲5.86605.98 ▼101.0457.48 ▲4.46
Media Library /wp-admin/upload.php1,391 ▲94.20 ▼0.0294.26 ▼7.5441.61 ▼2.94
.html For All /wp-admin/options-general.php?page=hfa-settings7842.0525.7424.21

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

html-for-all-url/hfa-main.php 92% from 13 tests

This is the main PHP file of ".html for all url" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html-for-all-url.php" instead of "hfa-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin220 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP429116208
CSS12012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.00
▷ Minimum class complexity18.00
▷ Maximum class complexity20.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin