Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.82MB] [CPU: ▼32.34ms] Passed 4 tests
This is a short check of server-side resources used by stepFORM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.53 ▼2.20 |
Dashboard /wp-admin | 3.13 ▼0.18 | 29.16 ▼25.30 |
Posts /wp-admin/edit.php | 3.13 ▼0.23 | 30.11 ▼27.57 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 32.42 ▼67.91 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 26.88 ▼8.59 |
stepFORM /wp-admin/options-general.php?page=stepFORM | 3.13 | 27.74 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_stepform_id_base |
Browser metrics Passed 4 tests
A check of browser resources used by stepFORM
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.27 ▼0.32 | 1.65 ▼0.18 | 51.80 ▲4.03 |
Dashboard /wp-admin | 2,251 ▲74 | 5.74 ▲0.06 | 83.77 ▼15.60 | 74.74 ▲27.79 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.01 ▼0.11 | 33.41 ▼4.02 | 33.56 ▼2.73 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,708 | 19.45 ▼3.43 | 923.65 ▲250.05 | 39.18 ▼17.63 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.26 ▲0.03 | 104.48 ▼1.06 | 72.17 ▲25.90 |
stepFORM /wp-admin/options-general.php?page=stepFORM | 1,020 | 2.37 | 33.35 | 28.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/stepform/includes/page.php+109
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_stepform_id_base
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=stepFORM
- > Notice in wp-content/plugins/stepform/assets/views/popup.php+39
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=stepFORM
- > Notice in wp-content/plugins/stepform/assets/views/popup.php+40
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/stepform/stepFORM.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: quiz, contact-form, form-builder, survey, forms
stepform/stepFORM.php 77% from 13 tests
"stepFORM" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stepform.php" instead of "stepFORM.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
Success! There were no dangerous files found in this plugin1,309 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 92 | 160 | 527 |
JavaScript | 4 | 55 | 18 | 499 |
CSS | 4 | 41 | 0 | 283 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.76MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/menu.png | 0.92KB | 0.44KB | ▼ 52.16% |
assets/screenshot-4.png | 169.90KB | 55.10KB | ▼ 67.57% |
assets/icon-256x256.png | 3.68KB | 1.86KB | ▼ 49.39% |
assets/banner-772x250.png | 95.13KB | 37.59KB | ▼ 60.48% |
assets/screenshot-2.png | 66.19KB | 25.98KB | ▼ 60.75% |