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.00MB] [CPU: ▼5.55ms] Passed 4 tests
Server-side resources used by Gravity Forms + Custom Post Types
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.43 ▼5.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.60 ▼6.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.58 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.23 ▼5.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.40 ▼4.02 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms + Custom Post Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.38 ▲0.16 | 1.72 ▼0.02 | 40.34 ▼6.70 |
Dashboard /wp-admin | 2,209 ▲29 | 5.54 ▼0.31 | 83.20 ▼10.33 | 42.29 ▼3.79 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.03 ▲0.02 | 39.34 ▼1.96 | 37.59 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.19 ▲5.69 | 644.96 ▼56.37 | 47.17 ▼7.42 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.22 ▼0.05 | 98.31 ▼11.13 | 46.46 ▲3.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon.php:12
- > PHP Fatal error
Uncaught Error: Class 'GFCPTAddonBase' not found in wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon_1-5.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Frontend: Example of mapping to a custom post type and multiple taxonomies), #2 (Frontend: Example of hierarchical taxonomy support), #3 (Setting: Mapping to a custom post type), #4 (Setting: Mapping a field to a custom taxonomy), #5 (Setting: Assigning generated post to selected parent post), #6 (Frontend: Example of Single Line Text field with Enhanced UI enabled), #7 (Setting: Mapping a Single Line Text field to a taxonomy (and enabling Enhanced UI))
gravity-forms-custom-post-types/gfcptaddon.php 92% from 13 tests
Analyzing the main PHP file in "Gravity Forms + Custom Post Types" version 3.1.29
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gravity-forms-custom-post-types.php" instead of "gfcptaddon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,354 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 232 | 183 | 738 |
CSS | 2 | 34 | 69 | 308 |
JavaScript | 4 | 55 | 148 | 308 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 8 | 15.38% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 2 | 3.85% |
▷ Private methods | 3 | 5.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
20 PNG files occupy 0.40MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.85KB | 19.82KB | ▼ 61.78% |
screenshot-5.png | 75.63KB | 31.22KB | ▼ 58.72% |
css/custom/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/custom/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/custom/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |