Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.69MB] [CPU: ▼33.02ms] Passed 4 tests
An overview of server-side resources used by Extend Theme Customizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 45.67 ▼1.39 |
Dashboard /wp-admin | 3.26 ▼0.05 | 28.50 ▼27.51 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 28.24 ▼23.70 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 24.65 ▼74.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 26.76 ▼6.33 |
ETC Settings /wp-admin/options-general.php?page=extend-theme-customizer | 3.26 | 23.89 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
etc_json_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Extend Theme Customizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.12 ▼0.24 | 1.88 ▲0.21 | 43.90 ▲0.32 |
Dashboard /wp-admin | 2,196 ▲19 | 5.50 ▼0.14 | 83.57 ▼19.77 | 37.87 ▼4.98 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.08 | 36.73 ▲0.54 | 36.71 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 18.22 ▼5.16 | 649.27 ▲4.66 | 59.72 ▲10.72 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▼0.02 | 96.51 ▼12.19 | 43.95 ▼4.74 |
ETC Settings /wp-admin/options-general.php?page=extend-theme-customizer | 1,606 | 2.04 | 29.33 | 54.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+161
Undefined index: etc_json_file
- Zombie WordPress options detected upon uninstall: 7 options
- etc_json_settings
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
- > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+161
Undefined index: etc_json_file
- > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
- > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/extend-theme-customizer-admin.php+162
Undefined index: _wp_nonce
- > GET request to /wp-admin/options-general.php?page=extend-theme-customizer
- > Notice in wp-content/plugins/extend-theme-cusotomizer/admin/views/admin.php+15
Undefined variable: tc_width
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/extend-theme-cusotomizer/admin/views/admin.php:6
- > 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 94% from 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Set json file.), #2 (view theme customizer.)
extend-theme-cusotomizer/extend-theme-customizer.php 92% from 13 tests
The main PHP script in "Extend Theme Customizer" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extend-theme-cusotomizer.php" instead of "extend-theme-customizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,446 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 348 | 419 | 1,004 |
PO File | 2 | 38 | 40 | 111 |
JSON | 1 | 0 | 0 | 109 |
CSS | 1 | 8 | 1 | 97 |
JavaScript | 1 | 6 | 9 | 63 |
Markdown | 1 | 23 | 0 | 62 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 48 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 15.79% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.20MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 83.67KB | 29.05KB | ▼ 65.28% |
fields/layout/img/2cl.png | 3.55KB | 0.11KB | ▼ 96.92% |
fields/layout/img/2cr.png | 3.55KB | 0.11KB | ▼ 96.97% |
screenshot-2.png | 107.97KB | 37.61KB | ▼ 65.16% |
fields/layout/img/1col.png | 3.52KB | 0.09KB | ▼ 97.56% |