Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.88ms] Passed 4 tests
Analyzing server-side resources used by Seos Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.07 | 38.52 ▼1.66 |
Dashboard /wp-admin | 3.43 ▲0.08 | 52.86 ▼14.72 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 49.84 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 96.48 ▼4.33 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 38.85 ▲1.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Seos Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.72 ▲0.51 | 1.65 ▼0.96 | 37.82 ▼6.88 |
Dashboard /wp-admin | 2,212 ▲32 | 5.51 ▼0.15 | 95.01 ▼6.50 | 78.94 ▲32.78 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.96 ▼0.06 | 38.16 ▼3.38 | 37.31 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,694 ▲159 | 21.94 ▲3.58 | 690.61 ▲37.70 | 56.76 ▼14.61 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.13 ▼0.13 | 102.47 ▲3.84 | 72.70 ▲31.26 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seos-contact-form/inc/shortcode.php:259
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seos-contact-form/contact-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/seos-contact-form/inc/input-code.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/seos-contact-form/inc/form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 66 tag instead of maximum 10
seos-contact-form/contact-form.php 77% from 13 tests
The entry point to "Seos Contact Form" version 1.8.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("seos-contact-form.php" instead of "contact-form.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 397 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected585 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 131 | 14 | 500 |
CSS | 2 | 17 | 0 | 85 |
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.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 1.26KB | 0.25KB | ▼ 80.00% |
images/icon.png | 1.26KB | 0.25KB | ▼ 80.00% |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |