Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲5.00ms] Passed 4 tests
A check of server-side resources used by Custom Field List Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 42.93 ▲5.91 |
Dashboard /wp-admin | 3.71 ▲0.41 | 49.64 ▲3.92 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 51.51 ▲4.55 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 95.98 ▲5.60 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 38.66 ▲6.63 |
Custom Field List /wp-admin/options-general.php?page=custom-field-list-widget/widget_custom_field_list.php | 3.57 | 32.73 |
Server storage [IO: ▲0.55MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Custom Field List Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲160 | 13.96 ▼0.79 | 5.54 ▲3.76 | 38.29 ▼5.74 |
Dashboard /wp-admin | 2,210 ▲18 | 4.85 ▼0.04 | 108.86 ▼0.65 | 39.48 ▼5.02 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.04 | 36.21 ▼1.66 | 36.10 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.23 ▲0.01 | 618.23 ▼58.87 | 62.13 ▲8.41 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.22 ▲0.05 | 94.71 ▼4.10 | 39.88 ▼2.24 |
Custom Field List /wp-admin/options-general.php?page=custom-field-list-widget/widget_custom_field_list.php | 846 | 2.05 | 26.27 | 25.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=custom-field-list-widget/widget_custom_field_list.php
- > Notice in wp-content/plugins/custom-field-list-widget/widget_custom_field_list.php+2502
Trying to access array offset on value of type bool
SRP 0% 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
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-field-list-widget/widget_custom_field_list_long_selectbox.php
- > /wp-content/plugins/custom-field-list-widget/widget_custom_field_list_individual_href.php
- > /wp-content/plugins/custom-field-list-widget/widget_custom_field_list_individual_href_advice.php
- > /wp-content/plugins/custom-field-list-widget/widget_custom_field_list_individual_href_save_data.php
- > /wp-content/plugins/custom-field-list-widget/uninstall.php
- > /wp-content/plugins/custom-field-list-widget/widget_custom_field_list_js.php
- 1× 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-field-list-widget/widget_custom_field_list.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
custom-field-list-widget/widget_custom_field_list.php 85% from 13 tests
Analyzing the main PHP file in "Custom Field List Widget" version 1.5.1
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-field-list-widget.php" instead of "widget_custom_field_list.php")
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
No dangerous file extensions were detected5,090 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 234 | 278 | 2,544 |
PO File | 7 | 874 | 1,220 | 2,339 |
CSS | 2 | 7 | 26 | 207 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
assets/icon-128x128.png | 8.92KB | 3.91KB | ▼ 56.16% |
assets/icon-256x256.png | 20.53KB | 7.29KB | ▼ 64.46% |