Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼15.05ms] Passed 4 tests
Analyzing server-side resources used by Custom Header Extended
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.26 ▲0.84 |
Dashboard /wp-admin | 3.42 ▲0.07 | 48.60 ▼24.95 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.95 ▼5.55 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.98 ▼27.55 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.66 ▼2.16 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Header Extended
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.35 ▲0.00 | 2.27 ▲0.32 | 43.90 ▲1.97 |
Dashboard /wp-admin | 2,192 ▲18 | 5.49 ▼0.09 | 91.09 ▲1.44 | 40.76 ▼2.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.00 | 36.12 ▼5.46 | 34.28 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.18 ▲0.03 | 668.17 ▼22.93 | 58.15 ▲1.84 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.13 ▲0.01 | 101.22 ▼17.20 | 44.23 ▼3.40 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-header-extended/inc/class-custom-headers-filter.php:129
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-header-extended/custom-header-extended.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-header-extended/admin/class-custom-headers-admin.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Custom header meta box.), #2 (Custom header meta box on the edit post screen.), #3 (Custom header on a single post page.)
custom-header-extended/custom-header-extended.php 92% from 13 tests
The entry point to "Custom Header Extended" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 254 characters long)
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
Everything looks great! No dangerous files found in this plugin901 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 3 | 123 | 0 | 359 |
PHP | 3 | 179 | 534 | 358 |
JavaScript | 2 | 51 | 59 | 110 |
PO File | 1 | 23 | 24 | 74 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 3 | 100.00% |
Methods | 26 | |
▷ Static methods | 4 | 15.38% |
▷ Public methods | 26 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 41.45KB | 18.45KB | ▼ 55.48% |
screenshot-2.png | 232.93KB | 85.72KB | ▼ 63.20% |
screenshot-1.png | 33.83KB | 19.69KB | ▼ 41.80% |