Benchmarks
Plugin footprint 83% 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.18MB] [CPU: ▼9.88ms] Passed 4 tests
A check of server-side resources used by WC Fields Factory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 39.24 ▼2.47 |
Dashboard /wp-admin | 3.50 ▲0.15 | 46.22 ▼22.00 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.71 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 92.56 ▼15.12 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.42 ▲0.73 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WC Fields Factory: 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,796 ▲34 | 14.37 ▲0.02 | 1.78 ▼0.02 | 37.98 ▼7.26 |
Dashboard /wp-admin | 2,204 ▲32 | 5.62 ▼0.22 | 90.37 ▼27.34 | 38.00 ▼9.63 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.04 | 42.03 ▲5.53 | 36.60 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.83 ▼0.30 | 646.43 ▼19.48 | 52.42 ▼0.38 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.02 | 98.13 ▼5.80 | 41.71 ▼2.14 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- wcff_options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Even though everything seems fine, this is not 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 items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-fields-factory/views/meta_box_option.php:7
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/wc-fields-factory/views/meta_box_group_preference.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wc-fields-factory/includes/wcff_post_list_table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-fields-factory/includes/wcff_post_list_table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wc-fields-factory/includes/wcff_options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-fields-factory/includes/meta/wcff-common-wccaf-meta.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wc-fields-factory/views/meta_box_group_preference.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-fields-factory/includes/meta/wcff-common-meta.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wc-fields-factory/views/meta_box_group_preference.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-fields-factory/includes/meta/wcff-meta.php:6
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #6 is missing in wc-fields-factory/assets to your readme.txt
wc-fields-factory/wcff.php 92% from 13 tests
The entry point to "WC Fields Factory" version 4.1.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-fields-factory.php" instead of "wcff.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
Success! There were no dangerous files found in this plugin25,429 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,995 | 2,807 | 11,859 |
JavaScript | 9 | 1,491 | 1,202 | 9,577 |
CSS | 5 | 621 | 85 | 3,993 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 105.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 502.00 |
Average method complexity | 8.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 339 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 229 | 67.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 110 | 32.45% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wccpf.png | 0.19KB | 0.14KB | ▼ 27.18% |
assets/img/select.png | 0.48KB | 0.27KB | ▼ 42.92% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/img/prev.png | 10.45KB | 1.78KB | ▼ 82.97% |
assets/img/search-icon.png | 4.80KB | 0.76KB | ▼ 84.15% |