Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/send-to-statsd/send-to-statsd.php+143
Cannot use variable $section twice
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.04ms] Passed 4 tests
Server-side resources used by Send to Statsd
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.04 ▼6.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.42 ▼5.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.91 ▲5.66 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.43 ▼15.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.15 ▼1.28 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Send to Statsd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.68 ▼0.72 | 1.73 ▼0.06 | 37.33 ▼10.87 |
Dashboard /wp-admin | 2,203 ▲15 | 5.90 ▼0.00 | 112.55 ▲7.48 | 42.98 ▲3.14 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▼0.00 | 43.10 ▲5.15 | 35.11 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.24 ▼4.69 | 599.59 ▼66.55 | 51.07 ▼2.60 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.17 ▼0.08 | 101.36 ▲0.48 | 41.05 ▼0.08 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 83× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Domnikl\\Statsd\\Connection' not found in wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/lib/Connection/InMemory.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:4
- > PHP Warning
require(wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/tests/integration/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/tests/integration/tcp-test.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/send-to-statsd/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/tests/integration/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/tests/integration/udp-test.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Domnikl\\Statsd\\Connection' not found in wp-content/plugins/send-to-statsd/vendor/domnikl/statsd/tests/unit/ConnectionMock.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== send-to-statsd ===
)
send-to-statsd/send-to-statsd.php Passed 13 tests
The main file in "Send to Statsd" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Send statistics to a statsd daemon
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,617 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 555 | 949 | 3,015 |
Markdown | 3 | 75 | 0 | 263 |
JSON | 4 | 0 | 0 | 253 |
XML | 2 | 2 | 0 | 44 |
make | 1 | 9 | 0 | 20 |
YAML | 2 | 3 | 0 | 18 |
JavaScript | 1 | 0 | 0 | 4 |
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.17 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 3 | 3.80% |
▷ Concrete classes | 76 | 96.20% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 3 | 1.56% |
▷ Public methods | 150 | 78.12% |
▷ Protected methods | 37 | 19.27% |
▷ Private methods | 5 | 2.60% |
Functions | 24 | |
▷ Named functions | 7 | 29.17% |
▷ Anonymous functions | 17 | 70.83% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin