Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.78ms] Passed 4 tests
This is a short check of server-side resources used by GF Custom Style
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.29 ▲3.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.32 ▼0.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.94 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.61 ▼6.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.43 ▲0.75 |
GF Custom Style /wp-admin/themes.php?page=gcs-settings-theme | 3.26 | 42.50 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GF Custom Style: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.21 ▼1.10 | 1.98 ▼0.09 | 43.38 ▲2.04 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.95 | 97.24 ▼9.44 | 39.97 ▼2.08 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.01 | 34.83 ▼8.35 | 33.80 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.22 ▲0.41 | 613.80 ▼12.46 | 52.71 ▼3.82 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.01 | 94.54 ▼3.33 | 42.97 ▼1.24 |
GF Custom Style /wp-admin/themes.php?page=gcs-settings-theme | 4,648 | 4.83 | 167.89 | 27.48 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× 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/gf-custom-style/gf-custom-style-class.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 631:40 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 770:42 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 851:41 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 925:35 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 1050:33 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 1069:34 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 1118:28 Uncaught TypeError: jQuery(...).live is not a function
- > GET request to /wp-admin/themes.php?page=gcs-settings-theme
- > Javascript (severe) in unknown
/wp-admin/themes.php?page=gcs-settings-theme 1139:37 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Screen example 1), #2 (Screen example 2), #3 (Screen example 3), #4 (Config screen)
gf-custom-style/gf-custom-style.php Passed 13 tests
The primary PHP file in "GF Custom Style" version 2.0 is used by WordPress to initiate all plugin functionality
56 characters long description:
Customize gravity forms plugin, colors, inputs... style.
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
There were no executable files found in this plugin4,526 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 435 | 293 | 2,291 |
JSON | 2 | 0 | 0 | 1,041 |
JavaScript | 9 | 146 | 14 | 579 |
Sass | 7 | 37 | 1 | 554 |
PO File | 1 | 18 | 20 | 59 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 32 | 59.26% |
▷ Public methods | 51 | 94.44% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 2 | 3.70% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 42 | 100.00% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
btn.png | 0.58KB | 0.34KB | ▼ 41.89% |
assets/images/grid.png | 49.84KB | 18.89KB | ▼ 62.10% |