Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/snorkel/includes/class-snorkel.php+126
Undefined property: Snorkel::$url
Server metrics [RAM: ▼1.55MB] [CPU: ▼53.62ms] Passed 4 tests
A check of server-side resources used by Snorkel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.03 | 7.49 ▼35.42 |
Dashboard /wp-admin | 2.45 ▼0.85 | 8.48 ▼47.33 |
Posts /wp-admin/edit.php | 2.45 ▼0.90 | 8.64 ▼40.98 |
Add New Post /wp-admin/post-new.php | 2.45 ▼3.43 | 7.79 ▼90.74 |
Media Library /wp-admin/upload.php | 2.45 ▼0.77 | 8.39 ▼25.51 |
Snorkel Settings /wp-admin/options-general.php?page=snorkel | 2.45 | 9.05 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Snorkel: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.40 ▼1.03 | 2.68 ▲0.94 | 40.37 ▼2.31 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▲0.95 | 110.64 ▼4.84 | 44.08 ▼2.20 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.04 | 38.61 ▼5.66 | 36.17 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.49 ▼4.75 | 602.20 ▼53.25 | 51.06 ▼2.01 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.19 ▼0.02 | 101.02 ▼5.42 | 41.30 ▼2.68 |
Snorkel Settings /wp-admin/options-general.php?page=snorkel | 814 | 2.02 | 27.04 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/snorkel/includes/class-snorkel.php+126
Undefined property: Snorkel::$url
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% 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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=snorkel
- > Notice in wp-content/plugins/snorkel/includes/class-snorkel.php+126
Undefined property: Snorkel::$url
- > GET request to /wp-admin/options-general.php?page=snorkel
- > Notice in wp-content/plugins/snorkel/admin/partials/snorkel-admin-display.php+29
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/snorkel/public/partials/snorkel-public-display.php
- 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/psr7/src/Response.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/snorkel/includes/class-snorkel-activator.php:23
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/snorkel/admin/partials/snorkel-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/snorkel/vendor/guzzlehttp/guzzle/src/Client.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: olark live chat, snorkel, chat, data, roi...
snorkel/snorkel.php 92% from 13 tests
"Snorkel" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
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 detected12,203 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,803 | 5,285 | 8,495 |
Markdown | 10 | 1,006 | 0 | 3,211 |
JSON | 7 | 0 | 0 | 473 |
JavaScript | 1 | 0 | 0 | 15 |
make | 1 | 4 | 0 | 9 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 70 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 70 | 100.00% |
▷ Final classes | 8 | 11.43% |
Methods | 679 | |
▷ Static methods | 69 | 10.16% |
▷ Public methods | 548 | 80.71% |
▷ Protected methods | 4 | 0.59% |
▷ Private methods | 127 | 18.70% |
Functions | 146 | |
▷ Named functions | 60 | 41.10% |
▷ Anonymous functions | 86 | 58.90% |
Constants | 53 | |
▷ Global constants | 1 | 1.89% |
▷ Class constants | 52 | 98.11% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin