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.01ms] Passed 4 tests
This is a short check of server-side resources used by wp custom setting
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.84 ▼6.43 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.38 ▼5.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.80 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.83 ▼10.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.00 ▲3.04 |
Custom options /wp-admin/options-general.php?page=custom_options_setting | 3.25 | 28.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
wp custom setting: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.40 ▲0.03 | 1.69 ▼0.20 | 38.27 ▼6.40 |
Dashboard /wp-admin | 2,214 ▲26 | 4.89 ▼0.96 | 107.98 ▼7.14 | 41.94 ▼2.23 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.04 ▲0.02 | 38.97 ▲2.10 | 37.90 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.80 ▲0.06 | 620.18 ▼36.88 | 48.46 ▼10.70 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▼0.03 | 100.14 ▼12.55 | 43.40 ▼2.98 |
Custom options /wp-admin/options-general.php?page=custom_options_setting | 888 | 1.68 | 26.50 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=custom_options_setting
- > Notice in wp-content/plugins/wp-custom-setting/admin-panel.php+15
Undefined variable: msg
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (settings), #2 (samples)
wp-custom-setting/wp_custom_settings.php 92% from 13 tests
The principal PHP file in "wp custom setting" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-custom-setting.php" instead of "wp_custom_settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin274 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 93 | 10 | 198 |
PO File | 1 | 8 | 12 | 33 |
JavaScript | 1 | 15 | 0 | 24 |
CSS | 1 | 5 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 17.78KB | 9.77KB | ▼ 45.07% |
screenshot-1.png | 13.60KB | 6.19KB | ▼ 54.48% |