Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.52ms] Passed 4 tests
This is a short check of server-side resources used by Upgrade Notice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.40 | 36.67 ▼4.25 |
Dashboard /wp-admin | 3.68 ▲0.38 | 48.21 ▼1.61 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 52.58 ▲7.36 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 95.52 ▼4.34 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 37.28 ▲0.14 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 416 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Upgrade Notice: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.62 ▼1.03 | 1.87 ▲0.19 | 42.95 ▼0.96 |
Dashboard /wp-admin | 2,215 ▲24 | 4.86 ▼1.02 | 108.27 ▲9.74 | 40.00 ▼1.25 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.05 | 39.84 ▲6.17 | 34.91 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,520 ▼8 | 17.71 ▼5.44 | 606.84 ▼71.36 | 61.33 ▲6.20 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▼0.09 | 99.42 ▲0.92 | 42.39 ▲0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/shopping-feed/src/ShoppingFeed.php+259
rmdir(wp-content/uploads/shopping-feed): No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 177× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/shopping-feed/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
Uncaught Error: Class 'ShoppingFeed\\Feed\\Product\\AbstractProduct' not found in wp-content/plugins/shopping-feed/vendor/shoppingfeed/php-feed-generator/src/Product/ProductVariation.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shopping-feed/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/shopping-feed/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'ShoppingFeed\\Sdk\\Resource\\AbstractDomainResource' not found in wp-content/plugins/shopping-feed/vendor/shoppingfeed/php-sdk/src/Api/Order/OrderDomain.php:13
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in shopping-feed/assets to your readme.txt
- Contributors: Plugin contributors field is missing
shopping-feed/shoppingfeed.php 92% from 13 tests
The principal PHP file in "Upgrade Notice" v. 6.3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shopping-feed.php" instead of "shoppingfeed.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin43,589 lines of code in 396 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 349 | 4,461 | 10,674 | 37,383 |
Markdown | 26 | 1,415 | 0 | 4,184 |
JSON | 1 | 0 | 0 | 924 |
Sass | 7 | 38 | 7 | 366 |
PO File | 1 | 136 | 175 | 309 |
CSS | 2 | 27 | 2 | 260 |
JavaScript | 3 | 12 | 8 | 63 |
SVG | 3 | 0 | 0 | 53 |
Dockerfile | 2 | 12 | 0 | 26 |
XML | 1 | 1 | 0 | 12 |
YAML | 1 | 1 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 18 | |
Traits | 3 | |
Classes | 295 | |
▷ Abstract classes | 7 | 2.37% |
▷ Concrete classes | 288 | 97.63% |
▷ Final classes | 26 | 9.03% |
Methods | 1,537 | |
▷ Static methods | 253 | 16.46% |
▷ Public methods | 1,240 | 80.68% |
▷ Protected methods | 50 | 3.25% |
▷ Private methods | 247 | 16.07% |
Functions | 223 | |
▷ Named functions | 74 | 33.18% |
▷ Anonymous functions | 149 | 66.82% |
Constants | 211 | |
▷ Global constants | 50 | 23.70% |
▷ Class constants | 161 | 76.30% |
▷ Public constants | 161 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.39MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 66.29KB | 12.91KB | ▼ 80.53% |
assets/images/ icon-256x256-.png | 38.25KB | 9.18KB | ▼ 75.99% |
assets/images/banner-1544x500.png | 186.14KB | 25.67KB | ▼ 86.21% |
assets/images/ icon-128x128.png | 15.62KB | 4.77KB | ▼ 69.43% |
assets/images/icon-512x512.png | 88.41KB | 18.66KB | ▼ 78.90% |