Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼5.71ms] Passed 4 tests
A check of server-side resources used by Spottr
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 48.41 ▲5.65 |
Dashboard /wp-admin | 3.80 ▲0.45 | 49.35 ▼8.23 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 49.63 ▲2.97 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 78.78 ▼22.52 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 37.76 ▲4.93 |
Server storage [IO: ▲5.39MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,182 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Spottr: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 15.40 ▲1.05 | 2.08 ▲0.47 | 42.79 ▲2.20 |
Dashboard /wp-admin | 2,224 ▲44 | 7.31 ▲1.68 | 109.29 ▲16.23 | 42.62 ▼3.28 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 4.31 ▲2.33 | 47.25 ▲12.65 | 34.96 ▼4.23 |
Add New Post /wp-admin/post-new.php | 6,320 ▲4,794 | 25.30 ▲1.76 | 974.14 ▲325.44 | 40.30 ▼14.49 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 6.75 ▲2.49 | 115.23 ▲12.69 | 47.58 ▲4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 665× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Transformation\\QualifierMultiValue' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Effect/Misc/VectorizeValue.php:16
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Transformation\\Qualifier\\BaseExpressionQualifier' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Positioning/X.php:18
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Asset\\BaseMediaAsset' not found in wp-content/plugins/spottr/vendor/cloudinary/cloudinary_php/src/Asset/Media.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/tests/Unit/Transformation/Image/ResizeTest.php:33
- > PHP Fatal error
Trait 'Cloudinary\\Log\\LoggerTrait' not found in wp-content/plugins/spottr/vendor/cloudinary/cloudinary_php/src/Api/BaseApiClient.php on line 44
- > PHP Fatal error
Trait 'Cloudinary\\Transformation\\PixelEffectTrait' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Effect/CommonEffectTrait.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Transformation\\EffectQualifier' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Adjustment/RecolorQualifier.php:25
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Transformation\\BlendEffectQualifier' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Adjustment/Improve.php:22
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/spottr/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Cloudinary\\Transformation\\LimitedEffectQualifier' not found in wp-content/plugins/spottr/vendor/cloudinary/transformation-builder-sdk/src/Transformation/Effect/StrengthEffectQualifier.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #1 in spottr/assets to your readme.txt
spottr/spottr.php Passed 13 tests
The principal PHP file in "Spottr" v. 1.0.0 is loaded by WordPress automatically on each request
64 characters long description:
Spottr helps connect your WordPress site to your Spottr account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected67,963 lines of code in 1,132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,052 | 13,556 | 49,764 | 58,875 |
Markdown | 32 | 1,763 | 0 | 4,981 |
JSON | 17 | 0 | 0 | 1,676 |
Twig | 6 | 113 | 16 | 770 |
CSS | 5 | 171 | 39 | 647 |
JavaScript | 5 | 10 | 70 | 452 |
Bourne Shell | 4 | 82 | 44 | 326 |
TypeScript | 2 | 24 | 6 | 80 |
XML | 3 | 10 | 4 | 74 |
YAML | 4 | 4 | 0 | 64 |
make | 1 | 8 | 0 | 13 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 89 | |
Interfaces | 108 | |
Traits | 192 | |
Classes | 737 | |
▷ Abstract classes | 80 | 10.85% |
▷ Concrete classes | 657 | 89.15% |
▷ Final classes | 135 | 20.55% |
Methods | 5,247 | |
▷ Static methods | 1,967 | 37.49% |
▷ Public methods | 4,620 | 88.05% |
▷ Protected methods | 403 | 7.68% |
▷ Private methods | 224 | 4.27% |
Functions | 216 | |
▷ Named functions | 57 | 26.39% |
▷ Anonymous functions | 159 | 73.61% |
Constants | 2,187 | |
▷ Global constants | 9 | 0.41% |
▷ Class constants | 2,178 | 99.59% |
▷ Public constants | 2,140 | 98.26% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/woocommerce-placeholder-324x324.png | 27.46KB | 11.11KB | ▼ 59.55% |
vendor/cloudinary/cloudinary_php/tests/assets/sample.png | 4.99KB | 3.40KB | ▼ 31.92% |