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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.58ms] Passed 4 tests
Analyzing server-side resources used by Visual Header
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.88 ▼0.53 |
Dashboard /wp-admin | 3.47 ▲0.12 | 51.94 ▼10.59 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 44.04 ▼2.24 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.87 ▼4.97 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.69 ▲0.87 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Visual Header
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲52 | 14.23 ▼0.05 | 1.88 ▲0.13 | 42.88 ▼1.10 |
Dashboard /wp-admin | 2,207 ▲29 | 5.66 ▼0.00 | 90.30 ▼10.65 | 41.00 ▼1.06 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.04 ▲0.05 | 35.76 ▲0.12 | 34.82 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.41 ▼4.62 | 608.98 ▼58.91 | 59.00 ▲9.45 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.25 ▲0.01 | 95.44 ▲0.18 | 39.24 ▼3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/visual-header/single-visualheader.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/library.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/perview.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/customize.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/visual-header/framework/duplicate.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/visual-header.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/builder.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-header/framework/default.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: header builder, header
visual-header/visual-header.php Passed 13 tests
Analyzing the main PHP file in "Visual Header" version 1.2
100 characters long description:
You To Live Build Any Header Layout You Exactly Need. Intuitive And Easy To Use Drag & Drop Builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,728 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 82 | 13 | 2,042 |
JavaScript | 6 | 526 | 395 | 1,920 |
PHP | 12 | 194 | 164 | 612 |
PO File | 1 | 54 | 58 | 134 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.30MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/icon/header_import.png | 15.74KB | 0.47KB | ▼ 97.03% |
assets/image/icon/close.png | 15.23KB | 0.63KB | ▼ 95.89% |
assets/image/icon/is_default.png | 14.66KB | 0.68KB | ▼ 95.34% |
assets/image/icon/back.png | 14.99KB | 0.63KB | ▼ 95.78% |
assets/image/icon/duplicate.png | 15.13KB | 0.46KB | ▼ 96.97% |