Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼136.47ms] Passed 4 tests
Server-side resources used by Fields Framework
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.16 ▲0.44 | 37.10 ▲15.59 |
Dashboard /wp-admin | 3.38 ▲0.33 | 44.81 ▲1.20 |
Posts /wp-admin/edit.php | 3.43 ▲0.33 | 45.84 ▲2.21 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.25 | 96.89 ▼550.09 |
Media Library /wp-admin/upload.php | 3.33 ▲0.33 | 33.87 ▲0.79 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ff_wp_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Fields Framework
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲122 | 16.04 ▲0.09 | 11.04 ▲1.65 | 48.75 ▲0.15 |
Dashboard /wp-admin | 2,982 ▲51 | 5.86 ▼0.06 | 134.68 ▼10.51 | 115.72 ▼4.79 |
Posts /wp-admin/edit.php | 2,760 ▲24 | 2.75 ▲0.04 | 71.92 ▲8.08 | 96.25 ▲10.48 |
Add New Post /wp-admin/post-new.php | 1,681 ▲9 | 19.15 ▲0.37 | 364.53 ▼1.50 | 109.50 ▲2.08 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.06 ▲0.02 | 128.08 ▼18.32 | 114.71 ▼8.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_ff_wp_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fields-framework/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function ff_create_section() in wp-content/plugins/fields-framework/php/field-testing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ff_create_section() in wp-content/plugins/fields-framework/php/demo-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fields-framework/php/admin-menu.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fields-framework/php/classes.php:475
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (An Administration Menu), #2 (An Administration Sub Menu), #3 (Repeatable Field Groups and Nested Field Groups), #4 (A section assigned to a page with a page template named 'Showcase Page'), #5 (A Repeatable Field Group with two fields), #6 (A dump of values from a particular section), #7 (A custom post type named 'Slide' with a section associated to it), #8 (A custom post type named 'Service' with a section associated to it), #9 (A custom post type named 'Member' with a section associated to it), #10 (A custom post type named 'Testimonial' with a section associated to it), #11 (An Administration Sub Menu with a bunch of fields), #12 (A section assigned to posts using the audio post format), #13 (A section assigned to posts using the video post format), #14 (A section assigned to posts using the gallery post format), #15 (A section assigned to posts using the image post format), #16 (A section assigned to a page with a page template named 'About Page'), #17 (Two individual fields), #18 (A section assigned to a page with a page template named 'Contact Page'), #19 (DateTime field), #20 (ColorPicker field), #21 (A demo of all fields), #22 (An example of a Fields Widget with a Section selection drop down), #23 (A fields widget rendering fields of section associated to it.), #24 (Front end dump of a widget section), #25 (Builder - Sections), #26 (Builder - Fields), #27 (Builder - Fields By Sections)
- Tags: There are too many tags (36 tag instead of maximum 10)
fields-framework/index.php 92% from 13 tests
This is the main PHP file of "Fields Framework" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fields-framework.php" instead of "index.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
There were no executable files found in this plugin8,915 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 852 | 987 | 5,763 |
PHP | 6 | 538 | 103 | 1,509 |
CSS | 5 | 96 | 57 | 1,480 |
PO File | 1 | 74 | 74 | 163 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 8.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 4 | 15.38% |
▷ Concrete classes | 22 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 1 | 1.45% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
53 PNG files occupy 1.70MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/jquery-ui/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |
images/jquery-ui/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
images/jquery-ui/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
screenshot-19.png | 14.40KB | 6.82KB | ▼ 52.59% |
screenshot-17.png | 5.34KB | 3.16KB | ▼ 40.84% |