Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲0.16ms] Passed 4 tests
This is a short check of server-side resources used by Smart Custom Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 50.34 ▲9.89 |
Dashboard /wp-admin | 4.10 ▲0.75 | 55.13 ▼8.16 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 62.54 ▲13.58 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 88.78 ▼10.33 |
Media Library /wp-admin/upload.php | 3.99 ▲0.77 | 43.67 ▲9.26 |
Smart Custom Fields /wp-admin/edit.php?post_type=smart-custom-fields | 4.06 | 49.31 |
Add New /wp-admin/post-new.php?post_type=smart-custom-fields | 4.17 | 53.55 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Custom Fields
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,205 ▲444 | 19.69 ▲5.10 | 2.70 ▲1.05 | 42.27 ▼1.55 |
Dashboard /wp-admin | 2,623 ▲443 | 9.82 ▲4.14 | 217.25 ▲130.50 | 48.18 ▲9.98 |
Posts /wp-admin/edit.php | 2,705 ▲608 | 6.87 ▲4.87 | 154.72 ▲120.13 | 40.26 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6,641 ▲5,113 | 27.05 ▲4.09 | 1,002.07 ▲312.10 | 42.47 ▼13.82 |
Media Library /wp-admin/upload.php | 1,909 ▲509 | 7.91 ▲3.78 | 173.54 ▲69.86 | 47.05 ▼1.75 |
Smart Custom Fields /wp-admin/edit.php?post_type=smart-custom-fields | 1,672 | 6.78 | 127.72 | 31.26 |
Add New /wp-admin/post-new.php?post_type=smart-custom-fields | 4,012 | 8.20 | 159.57 | 39.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-file.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-datetime-picker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/smart-custom-fields/smart-custom-fields.php:28
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-boolean.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-wysiwyg.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-image.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Controller_Base' not found in wp-content/plugins/smart-custom-fields/classes/controller/class.option.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-check.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-datepicker.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smart_Custom_Fields_Field_Base' not found in wp-content/plugins/smart-custom-fields/classes/fields/class.field-radio.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: meta, repeatable, repeat, meta field, custom...
smart-custom-fields/smart-custom-fields.php Passed 13 tests
The entry point to "Smart Custom Fields" version 4.2.2 is a PHP file that has certain tags in its header comment area
69 characters long description:
Smart Custom Fields is a simple plugin that management custom fields.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin10,756 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 648 | 2,313 | 5,124 |
JavaScript | 16 | 717 | 1,639 | 4,320 |
CSS | 10 | 71 | 209 | 633 |
PO File | 2 | 156 | 272 | 350 |
Markdown | 3 | 119 | 0 | 291 |
JSON | 2 | 0 | 0 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 51 | 17.59% |
▷ Public methods | 217 | 74.83% |
▷ Protected methods | 66 | 22.76% |
▷ Private methods | 7 | 2.41% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/handle.png | 0.20KB | 0.10KB | ▼ 48.28% |