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.22MB] [CPU: ▲5.61ms] Passed 4 tests
An overview of server-side resources used by SimpleForm – Contact form made simple
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.71 ▲1.25 | 42.79 ▲5.08 |
Dashboard /wp-admin | 4.54 ▲1.24 | 54.01 ▲3.35 |
Posts /wp-admin/edit.php | 4.59 ▲1.24 | 57.10 ▲7.18 |
Add New Post /wp-admin/post-new.php | 7.44 ▲1.55 | 105.45 ▲6.82 |
Media Library /wp-admin/upload.php | 4.40 ▲1.17 | 44.14 ▲9.93 |
Editor /wp-admin/admin.php?page=sform-editor | 4.83 | 42.46 |
Add New /wp-admin/admin.php?page=sform-new | 4.63 | 40.19 |
Settings /wp-admin/admin.php?page=sform-settings | 5.32 | 44.48 |
Entries /wp-admin/admin.php?page=sform-entries | 4.58 | 40.50 |
Support /wp-admin/admin.php?page=sform-support | 4.37 | 37.62 |
Forms /wp-admin/admin.php?page=sform-forms | 4.38 | 39.82 |
Form /wp-admin/admin.php?page=sform-form | 4.68 | 39.57 |
Server storage [IO: ▲0.85MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_sform_shortcodes |
wp_sform_submissions |
New WordPress options |
---|
sform_attributes |
widget_theysaidso_widget |
sform_additional_script |
sform_settings |
widget_sform_widget |
sform_db_version |
can_compress_scripts |
widget_recent-posts |
sform_additional_style |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for SimpleForm – Contact form made simple
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 13.37 ▼1.21 | 1.73 ▼0.17 | 41.65 ▼4.61 |
Dashboard /wp-admin | 2,241 ▲53 | 4.88 ▼0.17 | 114.67 ▲6.49 | 38.26 ▼4.67 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.06 ▲0.04 | 38.34 ▲0.60 | 33.16 ▼1.88 |
Add New Post /wp-admin/post-new.php | 6,385 ▲4,843 | 23.60 ▲5.15 | 936.70 ▲255.14 | 58.60 ▲4.80 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.23 ▲0.10 | 101.90 ▼13.30 | 43.78 ▼4.18 |
Editor /wp-admin/admin.php?page=sform-editor | 1,881 | 2.16 | 29.63 | 38.61 |
Add New /wp-admin/admin.php?page=sform-new | 1,875 | 2.16 | 27.58 | 35.49 |
Settings /wp-admin/admin.php?page=sform-settings | 2,086 | 1.77 | 29.24 | 33.04 |
Entries /wp-admin/admin.php?page=sform-entries | 824 | 2.22 | 25.88 | 46.05 |
Support /wp-admin/admin.php?page=sform-support | 819 | 2.02 | 25.59 | 35.51 |
Forms /wp-admin/admin.php?page=sform-forms | 1,083 | 1.87 | 26.21 | 29.57 |
Form /wp-admin/admin.php?page=sform-form | 945 | 2.12 | 27.93 | 31.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simpleform/admin/includes/class-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: captcha, ajax, contact form, email, custom form...
simpleform/simpleform.php Passed 13 tests
This is the main PHP file of "SimpleForm – Contact form made simple" version 2.1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
Create a basic contact form for your website. Lightweight and very simple to manage, SimpleForm is immediately ready to use.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,730 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,503 | 1,038 | 5,682 |
JavaScript | 7 | 97 | 7 | 1,120 |
CSS | 6 | 38 | 34 | 779 |
JSON | 1 | 0 | 0 | 149 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.79 |
Average class complexity | 132.17 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 548.00 |
Average method complexity | 13.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 25 | 19.53% |
▷ Public methods | 123 | 96.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.91% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/block/img/transparent.png | 0.09KB | 0.10KB | 0.00% |
public/img/confirmation.png | 2.58KB | 2.92KB | 0.00% |
admin/block/img/block-preview.png | 0.92KB | 0.99KB | 0.00% |
admin/block/build/images/transparent.f55e0d8b.png | 0.09KB | 0.10KB | 0.00% |
admin/img/copy_icon.png | 0.42KB | 0.46KB | 0.00% |