Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/html-php-pages-and-posts/html-php-pages-and-posts.php+24
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.58ms] Passed 4 tests
Analyzing server-side resources used by Custom HTML/PHP Post Templates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.76 ▼35.94 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.00 ▼46.99 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 9.32 ▼39.41 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 9.93 ▼75.97 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.75 ▼31.05 |
Custom templates /wp-admin/options-general.php?page=html-php-pages-and-posts | 2.05 | 6.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom HTML/PHP Post Templates: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 15.03 ▲0.67 | 1.84 ▲0.07 | 41.30 ▼5.00 |
Dashboard /wp-admin | 2,352 ▲164 | 6.43 ▲1.56 | 140.76 ▲23.49 | 42.80 ▼0.80 |
Posts /wp-admin/edit.php | 2,252 ▲163 | 3.40 ▲1.38 | 50.15 ▲12.49 | 31.62 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6,287 ▲4,768 | 19.04 ▼3.82 | 902.53 ▲269.24 | 41.92 ▼14.98 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.07 | 78.57 ▼16.59 | 41.01 ▼2.09 |
Custom templates /wp-admin/options-general.php?page=html-php-pages-and-posts | 1,041 | 3.03 | 39.18 | 26.01 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/html-php-pages-and-posts/html-php-pages-and-posts.php+24
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=html-php-pages-and-posts
- > Notice in wp-content/plugins/html-php-pages-and-posts/partials/settings-page-display.php+21
Trying to access array offset on value of type bool
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=html-php-pages-and-posts
- > Warning in wp-content/plugins/html-php-pages-and-posts/partials/settings-page-display.php+53
in_array() expects parameter 2 to be array, null given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/html-php-pages-and-posts/partials/settings-page-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/html-php-pages-and-posts/html-php-pages-and-posts.php:23
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== html-php-pages-and-posts ===
)
html-php-pages-and-posts/html-php-pages-and-posts.php Passed 13 tests
The principal PHP file in "Custom HTML/PHP Post Templates" v. 2.0.0 is loaded by WordPress automatically on each request
64 characters long description:
Use uploaded html or php files as templates for pages and posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected294 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 31 | 256 |
JavaScript | 1 | 4 | 14 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin