Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.72ms] Passed 4 tests
A check of server-side resources used by SmokeSignal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 43.09 ▼1.15 |
Dashboard /wp-admin | 3.48 ▲0.13 | 52.03 ▼0.62 |
Posts /wp-admin/edit.php | 3.59 ▲0.19 | 56.15 ▲4.51 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.13 | 89.85 ▼12.59 |
Media Library /wp-admin/upload.php | 3.40 ▲0.13 | 39.51 ▲3.50 |
Groups /wp-admin/users.php?page=smokesignalgroup | 3.37 | 52.42 |
SmokeSignal /wp-admin/options-general.php?page=my-setting-admin | 3.35 | 34.09 |
Messages /wp-admin/users.php?page=smokesignal | 3.38 | 37.36 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_smokesignal_groups |
wp_smokesignal_messages |
wp_smokesignal_users_groups |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
smokesignal_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by SmokeSignal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.79 ▼0.36 | 8.74 ▲7.14 | 41.38 ▲2.62 |
Dashboard /wp-admin | 2,202 ▲24 | 5.56 ▼0.11 | 88.21 ▼21.35 | 42.96 ▲3.73 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.23 ▲0.23 | 34.36 ▼9.47 | 35.39 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 22.94 ▼0.61 | 672.25 ▲22.13 | 37.43 ▼21.14 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.26 ▲0.09 | 102.82 ▲1.21 | 45.21 ▲3.60 |
Groups /wp-admin/users.php?page=smokesignalgroup | 812 | 1.77 | 27.18 | 25.26 |
SmokeSignal /wp-admin/options-general.php?page=my-setting-admin | 828 | 1.74 | 26.30 | 29.11 |
Messages /wp-admin/users.php?page=smokesignal | 803 | 1.91 | 30.23 | 25.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 34 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=smokesignal
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 34 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=smokesignal
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=my-setting-admin
- > Notice in wp-content/plugins/smokesignal/options.php+142
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smokesignal/views/single_message.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smokesignal/views/new.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/smokesignal/views/single_message.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smokesignal/options.php:148
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/smokesignal/smoke-signal.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/smokesignal/views/groups/list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smokesignal/views/group.php:8
- > PHP Notice
Undefined variable: args in wp-content/plugins/smokesignal/views/single_message.php on line 54
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/smokesignal/views/single_message.php on line 54
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smokesignal/views/reply.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smokesignal/views/single_message.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (You will get notification, when somebody writes you new message.), #2 (You can see the entire communication with one user on single page.)
smokesignal/smoke-signal.php 92% from 13 tests
The main file in "SmokeSignal" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smokesignal.php" instead of "smoke-signal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,331 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 216 | 124 | 1,121 |
PO File | 2 | 98 | 126 | 198 |
JavaScript | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 41 | 83.67% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.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
There were not PNG files found in your plugin