Benchmarks
Plugin footprint 64% from 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: ▼2.23MB] [CPU: ▲555.45ms] 50% from 4 tests
Server-side resources used by foreUP Forms
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 890.20ms on /wp-admin/options-general.php?page=formup)
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 555.45ms on /wp-admin/options-general.php?page=formup)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.37 | 932.31 ▲881.34 |
Dashboard /wp-admin | 2.17 ▼1.25 | 937.72 ▲906.18 |
Posts /wp-admin/edit.php | 2.17 ▼1.48 | 890.27 ▲854.66 |
Add New Post /wp-admin/post-new.php | 2.17 ▼4.81 | 895.66 ▼370.55 |
Media Library /wp-admin/upload.php | 2.17 ▼1.13 | 879.95 ▲856.33 |
foreUP Forms Configurations /wp-admin/options-general.php?page=formup | 2.17 | 890.20 |
Server storage [IO: ▲5.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 334 new files
Database: no new tables, 31 new options
New WordPress options |
---|
formup_recaptcha_key |
formup_email_pic_url |
formup_group |
formup_address2_required |
formup_state |
formup_account_counter |
formup_cell_phone_required |
formup_city |
formup_address2 |
formup_address1 |
... |
Browser metrics Passed 4 tests
foreUP Forms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲15 | 15.88 ▲0.24 | 7.03 ▲0.97 | 2.68 ▲0.34 |
Dashboard /wp-admin | 2,897 ▲36 | 6.08 ▼0.08 | 120.65 ▼12.84 | 156.24 ▼3.78 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 2.99 ▼0.24 | 64.60 ▲2.06 | 141.01 ▼5.25 |
Add New Post /wp-admin/post-new.php | 2,048 ▲387 | 18.75 ▲3.19 | 439.98 ▲3.54 | 146.21 ▼13.99 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.44 ▼0.11 | 148.35 ▲3.55 | 174.92 ▼10.07 |
foreUP Forms Configurations /wp-admin/options-general.php?page=formup | 1,459 | 2.54 | 54.36 | 117.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/foreup-forms/plugin.php+313
Undefined property: stdClass::$data
- This plugin does not fully uninstall, leaving 31 options in the database
- formup_address2_required
- formup_home_phone_required
- formup_state
- formup_email_body
- formup_account_counter
- formup_courseid
- formup_token
- formup_cell_phone_required
- formup_city_required
- formup_city
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=formup
- > Notice in wp-content/plugins/foreup-forms/plugin.php+313
Undefined property: stdClass::$data
- > GET request to /wp-admin/options-general.php?page=formup
- > Notice in wp-content/plugins/foreup-forms/plugin.php+313
Trying to get property 'id' of non-object
- > GET request to /wp-admin/options-general.php?page=formup
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=formup
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Donate link: Invalid url: ""
foreup-forms/plugin.php 85% from 13 tests
The principal PHP file in "foreUP Forms" v. 1.2.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("foreup-forms.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected119,696 lines of code in 320 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 278 | 13,303 | 16,431 | 99,358 |
JSON | 9 | 0 | 0 | 16,275 |
Markdown | 11 | 509 | 0 | 1,473 |
PHP | 5 | 137 | 245 | 1,102 |
Vuejs Component | 1 | 54 | 33 | 763 |
TypeScript | 12 | 110 | 28 | 723 |
CSS | 4 | 2 | 4 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 21.68KB | 7.19KB | ▼ 66.85% |