Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.21ms] Passed 4 tests
This is a short check of server-side resources used by Websand Subscription Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.29 ▼4.88 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.64 ▼8.76 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.13 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.14 ▼9.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.10 ▲0.36 |
Websand for WordPress /wp-admin/options-general.php?page=plugin | 3.22 | 31.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_websand_subscription_form |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Websand Subscription Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.39 ▼1.02 | 7.85 ▲5.27 | 41.69 ▼3.37 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▼0.21 | 94.81 ▲0.93 | 41.91 ▼0.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.03 | 39.67 ▲4.25 | 35.48 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,539 ▲14 | 18.40 ▼4.72 | 649.38 ▼12.92 | 67.47 ▲5.40 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.01 | 98.95 ▼10.70 | 44.83 ▲0.34 |
Websand for WordPress /wp-admin/options-general.php?page=plugin | 860 | 2.00 | 22.25 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_websand_subscription_form
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=plugin
- > Notice in wp-content/plugins/websand-subscription-form/websand_subscription_form.php+238
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/websand-subscription-form/websand_subscription_form.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in websand-subscription-form/assets to your readme.txt
websand-subscription-form/websand_subscription_form.php 92% from 13 tests
Analyzing the main PHP file in "Websand Subscription Form" version 1.0.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("websand-subscription-form.php" instead of "websand_subscription_form.php")
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
Good job! No executable or dangerous file extensions detected296 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 26 | 207 |
Markdown | 1 | 16 | 0 | 54 |
JavaScript | 1 | 2 | 0 | 35 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected