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.01MB] [CPU: ▼2.37ms] Passed 4 tests
Analyzing server-side resources used by Gravity Cloud: Compose and Style Gravity Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.40 ▼1.10 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.66 ▲5.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.65 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.44 ▼11.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.03 ▲5.68 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gcloud_recipes |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Cloud: Compose and Style Gravity Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 14.74 ▲0.09 | 1.99 ▲0.01 | 43.88 ▼1.22 |
Dashboard /wp-admin | 2,294 ▲114 | 5.63 ▼0.04 | 87.44 ▼11.59 | 38.60 ▼2.72 |
Posts /wp-admin/edit.php | 2,195 ▲98 | 2.00 ▼0.00 | 36.36 ▼1.47 | 37.76 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.89 ▼0.07 | 650.85 ▼42.35 | 47.15 ▼12.27 |
Media Library /wp-admin/upload.php | 1,493 ▲90 | 4.18 ▼0.02 | 100.97 ▼2.39 | 41.66 ▼8.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'GravityCloud\\API\\GCBaseController' not found in wp-content/plugins/gf-cloud/src/GravityCloud/API/RecipesController.class.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-cloud/gravitycloud.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/gf-cloud/src/GravityCloud/API/GCBaseController.class.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: forms, styler, gravity forms design, gravity forms, ecommerce
gf-cloud/gravitycloud.php 92% from 13 tests
This is the main PHP file of "Gravity Cloud: Compose and Style Gravity Forms" version 0.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-cloud.php" instead of "gravitycloud.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected618 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 129 | 12 | 549 |
JavaScript | 1 | 2 | 0 | 27 |
SVG | 1 | 0 | 0 | 22 |
CSS | 1 | 5 | 4 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 28 | 54.90% |
▷ Public methods | 40 | 78.43% |
▷ Protected methods | 2 | 3.92% |
▷ Private methods | 9 | 17.65% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin