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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 37.72 ▼0.18 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.94 ▼14.53 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.25 ▲7.59 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.92 ▲6.93 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 35.27 ▲3.37 |
WP Custom HTML Pages /wp-admin/options-general.php?page=wpchtmlp-menu-identifier | 3.29 | 33.73 |
HTML Pages /wp-admin/edit.php?post_type=wpchtmlp_page | 3.36 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.27 ▼0.11 | 1.74 ▲0.00 | 40.43 ▲2.26 |
Dashboard /wp-admin | 2,222 ▲31 | 6.15 ▲1.26 | 109.74 ▲6.08 | 40.49 ▲0.68 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 3.01 ▲1.01 | 43.35 ▲7.01 | 36.53 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 18.19 ▼4.96 | 664.91 ▲19.18 | 55.24 ▼3.69 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 5.36 ▲1.09 | 106.10 ▲6.90 | 42.09 ▼2.39 |
WP Custom HTML Pages /wp-admin/options-general.php?page=wpchtmlp-menu-identifier | 904 | 2.62 | 30.68 | 36.28 |
HTML Pages /wp-admin/edit.php?post_type=wpchtmlp_page | 1,090 | 2.90 | 34.37 | 29.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 370 | 20 | 1 | 438 |
PHP | 3 | 119 | 95 | 405 |
HTML | 2 | 19 | 5 | 315 |
JSON | 2 | 0 | 0 | 40 |
Markdown | 1 | 8 | 0 | 14 |
CSS | 1 | 3 | 8 | 6 |
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 code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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