Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/all-custom-fields-groups/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/all-custom-fields-groups/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/all-custom-fields-groups/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.41MB] [CPU: ▼2.72ms] Passed 4 tests
Analyzing server-side resources used by All custom fields & groups
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.42 | 44.82 ▲6.22 |
Dashboard /wp-admin | 3.71 ▲0.40 | 46.86 ▼3.29 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 45.65 ▼1.30 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 86.23 ▼12.23 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.77 ▲5.96 |
All custom fields & groups /wp-admin/options-general.php?page=all-custom-fields-groups | 3.60 | 41.46 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_all_custom_fields_groups__errors_log |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
all-custom-fields-groups |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for All custom fields & groups
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.34 ▼0.89 | 1.83 ▲0.14 | 46.29 ▼5.44 |
Dashboard /wp-admin | 2,216 ▲25 | 5.88 ▼0.03 | 107.57 ▲2.37 | 44.28 ▲0.73 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.02 | 40.86 ▲0.18 | 31.46 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 17.63 ▼5.66 | 672.97 ▲66.00 | 62.86 ▲14.24 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▼0.18 | 98.90 ▼3.53 | 39.62 ▼4.69 |
All custom fields & groups /wp-admin/options-general.php?page=all-custom-fields-groups | 952 | 2.16 | 37.07 | 51.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_all_custom_fields_groups__errors_log
- The uninstall procedure has failed, leaving 7 options in the database
- all-custom-fields-groups
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/all-custom-fields-groups/library_wp.php:25
- > 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 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
Please fix the following attributes:
- Contributors: Contributors not specified
all-custom-fields-groups/index.php 92% from 13 tests
"All custom fields & groups" version 1.05's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("all-custom-fields-groups.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,607 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,264 | 5,099 | 3,599 |
CSS | 1 | 1 | 0 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 347.80 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 850 | |
▷ Static methods | 102 | 12.00% |
▷ Public methods | 843 | 99.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.82% |
Functions | 89 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 89 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin