68% wp-custom-html-pages

Code Review | WP Custom HTML Page

WordPress plugin WP Custom HTML Page scored68%from 54 tests.

About plugin

  • Plugin page: wp-custom-html-pages
  • Plugin version: 0.6.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2017
  • Latest release: Sep 20, 2020
  • Number of updates: 29
  • Update frequency: every 35.7 days
  • Top authors: kr4ft3r (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /11,413 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.10ms] Passed 4 tests

Analyzing server-side resources used by WP Custom HTML Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.72 ▼0.18
Dashboard /wp-admin3.39 ▲0.0543.94 ▼14.53
Posts /wp-admin/edit.php3.45 ▲0.0949.25 ▲7.59
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.92 ▲6.93
Media Library /wp-admin/upload.php3.32 ▲0.0835.27 ▲3.37
WP Custom HTML Pages /wp-admin/options-general.php?page=wpchtmlp-menu-identifier3.2933.73
HTML Pages /wp-admin/edit.php?post_type=wpchtmlp_page3.3637.06

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 383 new files
Database: 1 new table, 7 new options
New tables
wp_wpchtmlp_pages
New WordPress options
widget_recent-comments
WPCHTMLP_activity_log_version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Custom HTML Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8214.27 ▼0.111.74 ▲0.0040.43 ▲2.26
Dashboard /wp-admin2,222 ▲316.15 ▲1.26109.74 ▲6.0840.49 ▲0.68
Posts /wp-admin/edit.php2,114 ▲283.01 ▲1.0143.35 ▲7.0136.53 ▼0.69
Add New Post /wp-admin/post-new.php1,536 ▲318.19 ▼4.96664.91 ▲19.1855.24 ▼3.69
Media Library /wp-admin/upload.php1,416 ▲345.36 ▲1.09106.10 ▲6.9042.09 ▼2.39
WP Custom HTML Pages /wp-admin/options-general.php?page=wpchtmlp-menu-identifier9042.6230.6836.28
HTML Pages /wp-admin/edit.php?post_type=wpchtmlp_page1,0902.9034.3729.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wpchtmlp_pages
  • Zombie WordPress options detected upon uninstall: 7 options
    • WPCHTMLP_activity_log_version
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 0% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-custom-html-pages/wp-custom-html-pages.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-custom-html-pages/single-wpchtmlp_page.php:7

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

wp-custom-html-pages/wp-custom-html-pages.php Passed 13 tests

The primary PHP file in "WP Custom HTML Page" version 0.6.2 is used by WordPress to initiate all plugin functionality
93 characters long description:
Display full custom HTML on custom permalink address, or put it inside content as a shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,218 lines of code in 379 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript370201438
PHP311995405
HTML2195315
JSON20040
Markdown18014
CSS1386

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin