Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.85ms] Passed 4 tests
Server-side resources used by StatsD WordPress Client
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.64 ▼2.65 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.95 ▼7.05 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.17 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 84.82 ▼11.21 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.47 ▲2.36 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
StatsD WordPress Client: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.27 ▼0.43 | 1.65 ▼0.29 | 42.50 ▼4.58 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.00 | 93.07 ▲1.98 | 39.28 ▲3.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.03 | 35.30 ▼1.99 | 31.93 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.56 ▼4.38 | 628.73 ▲24.42 | 84.35 ▲19.35 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.03 | 95.19 ▼12.43 | 42.31 ▼4.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function network_home_url() in wp-content/plugins/statsd/trunk/statsd.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function network_home_url() in wp-content/plugins/statsd/statsd.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Example dashboard created in Graphite with data collected from this plugin.), #2 (Track any other application stat in your WordPress site with 1 line of code in your plugin/theme.)
statsd/statsd.php 92% from 13 tests
The main file in "StatsD WordPress Client" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 536 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
No dangerous file extensions were detected772 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 222 | 546 | 772 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 118 | 98.33% |
▷ Protected methods | 2 | 1.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.51MB with 0.94MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/screenshot-1.png | 436.19KB | 164.39KB | ▼ 62.31% |
screenshot-2.png | 337.45KB | 125.74KB | ▼ 62.74% |
trunk/screenshot-2.png | 337.45KB | 125.74KB | ▼ 62.74% |
screenshot-1.png | 436.19KB | 164.39KB | ▼ 62.31% |