Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.97ms] Passed 4 tests
Analyzing server-side resources used by Stay In Touch Connect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.17 ▲1.36 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.12 ▼14.47 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.16 ▼6.64 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 79.75 ▼8.12 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 34.80 ▲1.54 |
Connection /wp-admin/admin.php?page=connection | 3.24 | 30.44 |
Stay In Touch /wp-admin/admin.php?page=sit_welcome_page | 3.24 | 31.43 |
Logs /wp-admin/admin.php?page=logs | 3.26 | 31.04 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sit_newsletter |
wp_sit_newsletter_log |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Stay In Touch Connect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.43 ▼0.92 | 9.33 ▲7.85 | 43.40 ▲4.11 |
Dashboard /wp-admin | 2,226 ▲49 | 5.67 ▲0.01 | 90.31 ▼5.04 | 36.07 ▼0.56 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.05 ▲0.05 | 41.02 ▲4.92 | 36.61 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.14 ▲0.11 | 663.78 ▼2.68 | 66.52 ▲16.61 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.21 ▲0.05 | 93.58 ▼7.62 | 40.16 ▼4.20 |
Connection /wp-admin/admin.php?page=connection | 830 | 2.04 | 23.92 | 28.13 |
Stay In Touch /wp-admin/admin.php?page=sit_welcome_page | 790 | 2.04 | 23.44 | 28.04 |
Logs /wp-admin/admin.php?page=logs | 823 | 2.01 | 25.83 | 42.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sit_welcome_page
- > Notice in wp-content/plugins/stay-in-touch-connect/stayintouch.php+227
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stay-in-touch-connect/stayintouch.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
stay-in-touch-connect/stayintouch.php 85% from 13 tests
"Stay In Touch Connect" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stay-in-touch-connect.php" instead of "stayintouch.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
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 detected622 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 152 | 91 | 316 |
JavaScript | 2 | 90 | 56 | 158 |
CSS | 1 | 25 | 14 | 148 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected