Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.04ms] Passed 4 tests
Server-side resources used by Hide Header on Posts for Landing Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.90 ▼0.17 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.89 ▼3.77 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.11 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.88 ▼2.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.55 ▲1.08 |
WP Templates /wp-admin/admin.php?page=wcpt_welcome_page | 3.27 | 40.97 |
WP Templates /wp-admin/admin.php?page=wcpt_whats_new | 3.20 | 32.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
vgse_welcome_redirect |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
wcpt_welcome_redirect |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Hide Header on Posts for Landing Pages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.72 ▲0.35 | 1.98 ▲0.10 | 45.77 ▲0.09 |
Dashboard /wp-admin | 2,208 ▲28 | 5.55 ▼0.13 | 87.40 ▼5.18 | 39.58 ▼2.18 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.03 | 37.44 ▲0.87 | 37.43 ▲1.34 |
Add New Post /wp-admin/post-new.php | 6,377 ▲4,846 | 19.04 ▼4.08 | 876.92 ▲180.36 | 53.91 ▼6.15 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.30 ▲0.12 | 94.50 ▼8.87 | 44.65 ▲0.43 |
WP Templates /wp-admin/admin.php?page=wcpt_welcome_page | 928 | 1.99 | 24.93 | 30.91 |
WP Templates /wp-admin/admin.php?page=wcpt_whats_new | 889 | 1.99 | 24.97 | 28.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- vgse_welcome_redirect
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- wcpt_welcome_redirect
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wcpt_whats_new
- > Warning in wp-content/plugins/hide-header-on-posts-for-a-landing-page/vendor/vg-plugin-sdk/index.php+164
include(wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/whats-new/1.0.3.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wcpt_whats_new
- > Warning in wp-content/plugins/hide-header-on-posts-for-a-landing-page/vendor/vg-plugin-sdk/index.php+164
include(): Failed opening 'wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/whats-new/1.0.3.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=wcpt_whats_new
- > Notice in wp-content/plugins/hide-header-on-posts-for-a-landing-page/vendor/vg-plugin-sdk/index.php+166
Undefined variable: items
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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/welcome-page-content.php:1
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/metabox.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/wp-hide-header-posts.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function VG_Hide_Post_Header_Instance() in wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/upgrade-message.php:2
- > PHP Notice
Undefined variable: post in wp-content/plugins/hide-header-on-posts-for-a-landing-page/views/metabox.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: themes, wp page templates, custom pages, wordpress templates, custom templates...
hide-header-on-posts-for-a-landing-page/wp-hide-header-posts.php 92% from 13 tests
The entry point to "Hide Header on Posts for Landing Pages" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("hide-header-on-posts-for-a-landing-page.php" instead of "wp-hide-header-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected816 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 145 | 60 | 550 |
JavaScript | 1 | 50 | 11 | 218 |
CSS | 1 | 6 | 0 | 48 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/logo.png | 7.44KB | 3.88KB | ▼ 47.91% |