Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.42ms] Passed 4 tests
Server-side resources used by J7 Beaver Header Footer Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.85 ▼2.63 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.32 ▼9.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.55 ▼6.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.36 ▼19.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.67 ▲3.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by J7 Beaver Header Footer Templates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.54 ▲0.16 | 1.69 ▼0.15 | 44.02 ▲0.34 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.03 | 91.51 ▼2.61 | 37.97 ▼1.77 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.03 ▼0.02 | 36.60 ▼1.53 | 31.56 ▼9.10 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 23.38 ▲0.18 | 667.22 ▼20.89 | 50.49 ▼6.78 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.22 ▼0.06 | 114.48 ▲9.92 | 47.99 ▲2.14 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer-footer.php:5
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer-footer.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function update_site_option() in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'FLCustomizer' not found in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-functions-header.php:23
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer-content.php:5
- > PHP Fatal error
Uncaught Error: Class 'FLCustomizer' not found in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-functions-content.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer.php:28
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer-content.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-customizer-header.php:5
- > PHP Fatal error
Uncaught Error: Class 'FLCustomizer' not found in wp-content/plugins/j7-beaver-headers-footers/plugin/j7-headers-footers-functions-footer.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: footers, headers, usability, beaver builder, templates...
j7-beaver-headers-footers/j7-headers-footers.php 85% from 13 tests
Analyzing the main PHP file in "J7 Beaver Header Footer Templates" version 3.05
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("j7-beaver-headers-footers.php" instead of "j7-headers-footers.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin752 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 260 | 126 | 752 |
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.51 |
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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected