Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼139.23ms] Passed 4 tests
A check of server-side resources used by Gravity Forms Personality Quiz Add-On
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.15 ▲2.65 |
Dashboard /wp-admin | 3.06 ▲0.01 | 47.66 ▼8.64 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 95.78 ▲48.47 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 112.45 ▼549.48 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.09 ▼1.45 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Forms Personality Quiz Add-On
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.17 ▲0.67 | 8.50 ▼1.24 | 49.90 ▼9.79 |
Dashboard /wp-admin | 2,967 ▲33 | 6.03 ▼0.09 | 148.69 ▼14.57 | 128.93 ▲9.41 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 83.40 ▲5.59 | 102.25 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.29 ▲2.97 | 308.40 ▼66.82 | 120.29 ▲8.89 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.01 | 156.42 ▲0.37 | 124.63 ▲3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-personality-quiz-add-on/gravity-forms-personality-quiz-addon.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #4 is missing in gravity-forms-personality-quiz-add-on/assets to your readme.txt
gravity-forms-personality-quiz-add-on/gravity-forms-personality-quiz-addon.php 92% from 13 tests
The principal PHP file in "Gravity Forms Personality Quiz Add-On" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-personality-quiz-add-on.php" instead of "gravity-forms-personality-quiz-addon.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
There were no executable files found in this plugin577 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 55 | 428 |
CSS | 2 | 16 | 0 | 86 |
JavaScript | 2 | 16 | 0 | 63 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 13 | 65.00% |
▷ Protected methods | 7 | 35.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
No PNG files were detected