Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.49MB] [CPU: ▲4.55ms] Passed 4 tests
This is a short check of server-side resources used by Piotnet Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.52 | 45.76 ▲3.97 |
Dashboard /wp-admin | 4.82 ▲1.51 | 57.79 ▲1.71 |
Posts /wp-admin/edit.php | 4.87 ▲1.52 | 66.22 ▲12.10 |
Add New Post /wp-admin/post-new.php | 7.36 ▲1.47 | 107.93 ▲0.41 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 51.21 ▲16.17 |
Import /wp-admin/admin.php?page=import-piotnetforms | 4.65 | 39.94 |
Booking (Pro) /wp-admin/edit.php?post_type=piotnetforms-book | 4.55 | 36.36 |
Abandonment (Pro) /wp-admin/edit.php?post_type=piotnetforms-aban | 4.55 | 36.09 |
Forms /wp-admin/edit.php?post_type=piotnetforms | 4.81 | 58.64 |
Database (Pro) /wp-admin/edit.php?post_type=piotnetforms-data | 4.55 | 37.31 |
Settings /wp-admin/admin.php?page=piotnetforms | 4.71 | 54.09 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 215 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Piotnet Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.60 ▼0.80 | 5.64 ▲4.01 | 40.88 ▲1.11 |
Dashboard /wp-admin | 2,252 ▲61 | 5.82 ▲0.96 | 101.72 ▼0.71 | 39.45 ▼4.95 |
Posts /wp-admin/edit.php | 2,139 ▲47 | 2.03 ▲0.01 | 40.83 ▼0.20 | 38.61 ▲2.72 |
Add New Post /wp-admin/post-new.php | 6,263 ▲4,744 | 26.15 ▲3.04 | 896.78 ▲250.01 | 63.47 ▲4.33 |
Media Library /wp-admin/upload.php | 1,438 ▲53 | 4.23 ▲0.05 | 98.36 ▼14.31 | 46.91 ▲0.29 |
Import /wp-admin/admin.php?page=import-piotnetforms | 847 | 1.71 | 24.78 | 31.22 |
Booking (Pro) /wp-admin/edit.php?post_type=piotnetforms-book | 28 | 0.44 | 0.07 | 4.18 |
Abandonment (Pro) /wp-admin/edit.php?post_type=piotnetforms-aban | 28 | 0.44 | 0.07 | 4.17 |
Forms /wp-admin/edit.php?post_type=piotnetforms | 1,113 | 2.00 | 33.43 | 34.16 |
Database (Pro) /wp-admin/edit.php?post_type=piotnetforms-data | 28 | 0.44 | 0.06 | 4.31 |
Settings /wp-admin/admin.php?page=piotnetforms | 1,091 | 2.03 | 26.41 | 34.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% 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/admin.php?page=import-piotnetforms
- > Warning in wp-content/plugins/piotnetforms/inc/settings/import-page.php+11
scandir(wp-content/plugins/piotnetforms/inc/settings/../../assets/forms/templates/): failed to open dir: No such file or directory
- > GET request to /wp-admin/admin.php?page=import-piotnetforms
- > Warning in wp-content/plugins/piotnetforms/inc/settings/import-page.php+11
scandir(): (errno 2): No such file or directory
- > GET request to /wp-admin/admin.php?page=import-piotnetforms
- > Warning in wp-content/plugins/piotnetforms/inc/settings/import-page.php+11
array_diff(): Expected parameter 1 to be an array, bool given
- > GET request to /wp-admin/admin.php?page=import-piotnetforms
- > Warning in wp-content/plugins/piotnetforms/inc/settings/import-page.php+13
Invalid argument supplied for foreach()
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/piotnetforms/inc/forms/meta-box-piotnetforms-shortcode-in-post.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=piotnetforms-book
- > Network (severe)
wp-admin/edit.php?post_type=piotnetforms-book - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=piotnetforms-aban
- > Network (severe)
wp-admin/edit.php?post_type=piotnetforms-aban - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=piotnetforms-data
- > Network (severe)
wp-admin/edit.php?post_type=piotnetforms-data - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in piotnetforms/assets to your readme.txt
piotnetforms/piotnetforms.php 92% from 13 tests
"Piotnet Forms" version 1.0.25's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected31,813 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,557 | 201 | 9,931 |
SVG | 29 | 0 | 34 | 9,849 |
JavaScript | 78 | 875 | 97 | 6,966 |
CSS | 22 | 328 | 95 | 3,083 |
JSON | 2 | 0 | 0 | 1,984 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 3 | 6.38% |
▷ Concrete classes | 44 | 93.62% |
▷ Final classes | 0 | 0.00% |
Methods | 319 | |
▷ Static methods | 3 | 0.94% |
▷ Public methods | 269 | 84.33% |
▷ Protected methods | 20 | 6.27% |
▷ Private methods | 30 | 9.40% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/images/piotnetbuilder.png | 9.50KB | 2.06KB | ▼ 78.29% |
assets/images/signature.png | 6.00KB | 5.03KB | ▼ 16.19% |
assets/images/piotnet-logo.png | 9.58KB | 2.99KB | ▼ 68.80% |