Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.58ms] Passed 4 tests
Server-side resources used by Custom Header Footer By ByteMantra
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.57 ▲0.63 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.52 ▼13.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.19 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.17 ▼14.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.38 ▲1.77 |
Custom Header Footer Content /wp-admin/options-general.php?page=custom_header_footer_bytemantra | 3.22 | 32.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom Header Footer By ByteMantra: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.34 ▼0.22 | 1.74 ▲0.09 | 43.57 ▲0.44 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.02 | 93.71 ▲2.78 | 40.92 ▲0.40 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 38.65 ▲4.02 | 39.59 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.91 ▼0.50 | 645.52 ▼12.30 | 53.91 ▲1.94 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.03 | 94.29 ▼1.38 | 42.68 ▲2.50 |
Custom Header Footer Content /wp-admin/options-general.php?page=custom_header_footer_bytemantra | 880 | 1.99 | 23.01 | 34.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-header-footer-by-bytemantra/style.php
- > /wp-content/plugins/custom-header-footer-by-bytemantra/custom_header_footer_bytemanta.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== custom-header-footer-by-bytemantra ===
) - Tags: There are too many tags (11 tag instead of maximum 10)
custom-header-footer-by-bytemantra/custom_header_footer_bytemanta.php 92% from 13 tests
"Custom Header Footer By ByteMantra" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-header-footer-by-bytemantra.php" instead of "custom_header_footer_bytemanta.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin129 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 30 | 129 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 4 | |
▷ Named functions | 4 | 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
There were not PNG files found in your plugin