Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by Pinterest for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 40.78 ▲6.54 |
Dashboard /wp-admin | 3.67 ▲0.33 | 50.64 ▼10.41 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 48.34 ▼1.44 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 92.62 ▼1.20 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.63 ▲7.70 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 365 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pinterest-for-woocommerce-update-version |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pinterest for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.34 ▼0.03 | 1.75 ▲0.22 | 43.63 ▲6.92 |
Dashboard /wp-admin | 2,203 ▲29 | 5.61 ▼0.02 | 93.62 ▼4.32 | 39.68 ▼6.40 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.02 ▲0.06 | 40.14 ▼1.42 | 36.56 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.20 ▲0.12 | 611.43 ▼64.82 | 55.23 ▼5.43 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.20 ▼0.02 | 97.05 ▼0.14 | 42.04 ▼0.12 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/pinterest-for-woocommerce/uninstall.php+37
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- pinterest-for-woocommerce-update-version
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Automattic\\WooCommerce\\Pinterest\\Exception\\PinterestException' not found in wp-content/plugins/pinterest-for-woocommerce/src/Exception/PinterestApiLocaleException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/pinterest-for-woocommerce/vendor/defuse/php-encryption/src/Exception/IOException.php:5
- > PHP Fatal error
Trait 'Automattic\\WooCommerce\\ActionSchedulerJobFramework\\Utilities\\BatchSize' not found in wp-content/plugins/pinterest-for-woocommerce/vendor/woocommerce/action-scheduler-job-framework/src/Utilities/BatchQueryOffset.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/pinterest-for-woocommerce/vendor/defuse/php-encryption/src/Exception/EnvironmentIsBrokenException.php:5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/pinterest-for-woocommerce/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/pinterest-for-woocommerce/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Trait 'Automattic\\WooCommerce\\Pinterest\\Utilities\\Tracks' not found in wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'lib/byte_safe_strings.php' (include_path='.:/usr/share/php') in wp-content/plugins/pinterest-for-woocommerce/vendor/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Pinterest\otes\\Collection\\AbstractNote' not found in wp-content/plugins/pinterest-for-woocommerce/src/Notes/Collection/EnableCatalogSync.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Automattic\\WooCommerce\\Pinterest\\Exception\\PinterestException' not found in wp-content/plugins/pinterest-for-woocommerce/src/Exception/FeedFileOperationsException.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jpba6e215da828d2bc2b4b768fa9cb0dec\\al2_12_0\\wp_normalize_path() in wp-content/plugins/pinterest-for-woocommerce/vendor/jetpack-autoloader/class-path-processor.php:73
- > 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 Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: pinterest, woocommerce, advertise
pinterest-for-woocommerce/pinterest-for-woocommerce.php 85% from 13 tests
"Pinterest for WooCommerce" version 1.3.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 165 characters long)
- Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "7.4")
Code Analysis Passed 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 plugin21,508 lines of code in 337 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 184 | 3,718 | 9,893 | 11,927 |
JavaScript | 103 | 638 | 1,050 | 5,772 |
Markdown | 18 | 809 | 0 | 2,155 |
Sass | 11 | 270 | 14 | 921 |
JSON | 6 | 0 | 0 | 405 |
SVG | 7 | 0 | 0 | 210 |
XML | 2 | 11 | 5 | 60 |
CSS | 4 | 1 | 2 | 29 |
make | 1 | 9 | 4 | 26 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 12 | |
Traits | 6 | |
Classes | 140 | |
▷ Abstract classes | 5 | 3.57% |
▷ Concrete classes | 135 | 96.43% |
▷ Final classes | 9 | 6.67% |
Methods | 912 | |
▷ Static methods | 360 | 39.47% |
▷ Public methods | 657 | 72.04% |
▷ Protected methods | 109 | 11.95% |
▷ Private methods | 146 | 16.01% |
Functions | 35 | |
▷ Named functions | 2 | 5.71% |
▷ Anonymous functions | 33 | 94.29% |
Constants | 113 | |
▷ Global constants | 14 | 12.39% |
▷ Class constants | 99 | 87.61% |
▷ Public constants | 94 | 94.95% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.21MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/landing_welcome.png | 219.48KB | 221.34KB | 0.00% |