Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.85MB] [CPU: ▲17.18ms] Passed 4 tests
A check of server-side resources used by Stream
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.97 ▲2.51 | 64.80 ▲27.41 |
Dashboard /wp-admin | 6.27 ▲2.93 | 63.02 ▼0.72 |
Posts /wp-admin/edit.php | 6.33 ▲2.97 | 71.71 ▲29.91 |
Add New Post /wp-admin/post-new.php | 8.87 ▲2.99 | 105.10 ▲14.69 |
Media Library /wp-admin/upload.php | 6.20 ▲2.97 | 58.27 ▲27.33 |
Alerts /wp-admin/edit.php?post_type=wp_stream_alerts | 6.24 | 52.84 |
Settings /wp-admin/admin.php?page=wp_stream_settings | 6.26 | 52.77 |
Stream /wp-admin/admin.php?page=wp_stream | 6.80 | 64.42 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 224 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_stream |
wp_stream_meta |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Stream
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.60 ▲0.04 | 1.62 ▲0.12 | 36.46 ▼3.02 |
Dashboard /wp-admin | 2,240 ▲59 | 5.80 ▲0.09 | 86.33 ▼26.03 | 37.13 ▼5.98 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.23 ▲0.27 | 44.17 ▲6.68 | 37.81 ▲8.19 |
Add New Post /wp-admin/post-new.php | 1,565 ▲27 | 22.10 ▲3.74 | 654.69 ▲17.45 | 61.99 ▼1.30 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.39 ▲0.15 | 100.35 ▲5.21 | 43.68 ▲3.21 |
Alerts /wp-admin/edit.php?post_type=wp_stream_alerts | 1,077 | 2.58 | 47.70 | 34.90 |
Settings /wp-admin/admin.php?page=wp_stream_settings | 1,491 | 2.49 | 49.41 | 29.18 |
Stream /wp-admin/admin.php?page=wp_stream | 1,942 | 3.16 | 70.35 | 35.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_stream
- wp_stream_meta
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/stream/connectors/class-connector-taxonomies.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/stream/connectors/class-connector-blogs.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Alert_Type' not found in wp-content/plugins/stream/alerts/class-alert-type-none.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\List_Table' not found in wp-content/plugins/stream/classes/class-preview-list-table.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Exporter' not found in wp-content/plugins/stream/exporters/class-exporter-json.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Alert_Trigger' not found in wp-content/plugins/stream/alerts/class-alert-trigger-action.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/stream/connectors/class-connector-media.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Alert_Type' not found in wp-content/plugins/stream/alerts/class-alert-type-die.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/stream/connectors/class-connector-mercator.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/stream/connectors/class-connector-edd.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: track, logs, activity, wp stream, stream
stream/stream.php 92% from 13 tests
The main PHP script in "Stream" version 3.10.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 289 characters long)
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
There were no executable files found in this plugin30,938 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 3,094 | 8,949 | 15,053 |
JavaScript | 120 | 2,697 | 820 | 11,904 |
PO File | 1 | 833 | 987 | 2,294 |
CSS | 9 | 245 | 49 | 1,403 |
Markdown | 3 | 88 | 0 | 130 |
JSON | 1 | 0 | 0 | 77 |
YAML | 1 | 0 | 0 | 64 |
SVG | 3 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 31.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 4 | 6.56% |
▷ Concrete classes | 57 | 93.44% |
▷ Final classes | 0 | 0.00% |
Methods | 847 | |
▷ Static methods | 26 | 3.07% |
▷ Public methods | 821 | 96.93% |
▷ Protected methods | 10 | 1.18% |
▷ Private methods | 16 | 1.89% |
Functions | 46 | |
▷ Named functions | 13 | 28.26% |
▷ Anonymous functions | 33 | 71.74% |
Constants | 34 | |
▷ Global constants | 1 | 2.94% |
▷ Class constants | 33 | 97.06% |
▷ Public constants | 33 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.24MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/stream-icons/menuicon-sprite-2x.png | 2.06KB | 0.88KB | ▼ 57.38% |
assets/screenshot-3.png | 29.50KB | 29.57KB | 0.00% |
assets/screenshot-1.png | 64.28KB | 65.70KB | 0.00% |
assets/icon-128x128.png | 6.02KB | 3.27KB | ▼ 45.68% |
ui/stream-icons/wp-cli.png | 2.42KB | 1.77KB | ▼ 26.80% |