Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/gozen-forms/page/gzform_embedscript.php+24
Invalid argument supplied for foreach()
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.65ms] Passed 4 tests
Analyzing server-side resources used by GoZen Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.67 ▼3.90 |
Dashboard /wp-admin | 3.36 ▲0.06 | 55.18 ▲6.02 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 51.14 ▲4.50 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 105.77 ▲13.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.52 ▲3.97 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_gozen_embed_forms |
wp_gozen_forms_users |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GoZen Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.26 ▼1.34 | 4.40 ▲2.26 | 40.70 ▼6.04 |
Dashboard /wp-admin | 2,242 ▲54 | 4.86 ▼0.03 | 113.87 ▼2.15 | 39.88 ▼8.37 |
Posts /wp-admin/edit.php | 2,122 ▲54 | 1.99 ▼0.03 | 35.54 ▼1.35 | 35.00 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.41 ▲5.99 | 604.54 ▼38.51 | 49.47 ▲4.07 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.23 ▲0.07 | 100.16 ▼0.06 | 42.57 ▲0.59 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/gozen-forms/page/gzform_embedscript.php:22
- > PHP Fatal error
require_once(): Failed opening required 'GOZENFORMS_PATHpage/Gzformslogin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/Api/gzforms_api.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/gozen-forms/Api/table/gzforms_user_table.php:11
- > PHP Warning
require_once(GOZENFORMS_PATHpage/Gzformslogin.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-forms/Api/gzforms_api.php on line 4
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/constvar.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/gzforms_table.php on line 9
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/table/gzforms_form_table.php on line 9
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/gozen-forms/Api/table/gzforms_user_table.php on line 9
- > PHP Warning
require_once(GOZENFORMS_PATHApi/gzapisecret.php): failed to open stream: No such file or directory in wp-content/plugins/gozen-forms/constvar.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'GOZENFORMS_PATHApi/gzapisecret.php' (include_path='.:/usr/share/php') in wp-content/plugins/gozen-forms/constvar.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
gozen-forms/gzForms.php 69% from 13 tests
This is the main PHP file of "GoZen Forms" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.6.1")
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gozen-forms.php" instead of "gzForms.php")
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 plugin2,091 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 98 | 30 | 865 |
JavaScript | 2 | 118 | 6 | 651 |
PHP | 14 | 219 | 221 | 503 |
Markdown | 1 | 63 | 0 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
page/images/Logo.png | 32.64KB | 13.75KB | ▼ 57.87% |