Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sales-pop/vendor/sentry/sentry/lib/Raven/Client.php+326
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.76MB] [CPU: ▼47.56ms] Passed 4 tests
A check of server-side resources used by Live Sales Notification (Recent Sales Popups)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▼0.22 | 14.55 ▼22.04 |
Dashboard /wp-admin | 3.26 ▼0.09 | 15.96 ▼43.24 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 17.31 ▼33.99 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 13.23 ▼90.96 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 14.31 ▼18.06 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 289 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
beeketing_woocommerce_settings |
Browser metrics Passed 4 tests
Live Sales Notification (Recent Sales Popups): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 14.46 ▲0.20 | 1.75 ▲0.03 | 42.07 ▼1.30 |
Dashboard /wp-admin | 2,375 ▲187 | 6.25 ▲0.34 | 137.03 ▲35.69 | 82.58 ▲38.46 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.05 ▲0.07 | 37.16 ▼21.89 | 35.08 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.23 ▲0.09 | 782.12 ▲107.93 | 55.02 ▼0.20 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.23 ▲0.01 | 98.22 ▼2.35 | 71.47 ▲29.55 |
Uninstaller [IO: ▲1.61MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 8 options in the database
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/sales-pop/vendor/sentry/sentry/lib/Raven/Client.php+326
Array and string offset access syntax with curly braces is deprecated
- The plugin did not uninstall correctly, leaving 289 files (1.61MB) in the plugin directory
- (new file) src/Common/BeeketingAPI.php
- (new file) composer.lock
- (new file) sentry.php
- (new file) config.php
- (new file) images/icon/icon_menu.png
- (new file) composer.json
- (new file) index.php
- (new file) sales-pop-woocommerce.php
- (new file) sentry/.gitkeep
- (new file) readme.txt
- ...
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- beeketing_woocommerce_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sales-pop/src/Platforms/WooCommerce/Views/sdk_snippet.php
- > /wp-content/plugins/sales-pop/src/Platforms/WooCommerce/Views/admin_index.php
- 147× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Buzz\\Exception\\RuntimeException' not found in wp-content/plugins/sales-pop/vendor/kriswallsmith/buzz/lib/Buzz/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sales-pop/vendor/symfony/http-foundation/Tests/ExpressionRequestMatcherTest.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Message\\MessageInterface' not found in wp-content/plugins/sales-pop/vendor/kriswallsmith/buzz/lib/Buzz/Message/RequestInterface.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sales-pop/vendor/symfony/http-foundation/Tests/FileBagTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'BeeketingConnect_beeketing_woocommerce_salespop\\Common\\Data\\Manager\\BaseManager' not found in wp-content/plugins/sales-pop/src/Common/Data/Manager/CollectionManagerAbstract.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sales-pop/vendor/symfony/http-foundation/Tests/ApacheRequestTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Listener\\ListenerInterface' not found in wp-content/plugins/sales-pop/vendor/kriswallsmith/buzz/lib/Buzz/Listener/BearerAuthListener.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sales-pop/vendor/symfony/http-foundation/Tests/AcceptHeaderItemTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'BeeketingConnect_beeketing_woocommerce_salespop\\Common\\Data\\Manager\\BaseManager' not found in wp-content/plugins/sales-pop/src/Common/Data/Manager/OrderManagerAbstract.php:16
- > PHP Fatal error
Uncaught Error: Class 'Raven_Serializer' not found in wp-content/plugins/sales-pop/vendor/sentry/sentry/lib/Raven/ReprSerializer.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce, popup, ecommerce, live sales feed, recent sales notification
sales-pop/sales-pop-woocommerce.php 85% from 13 tests
The primary PHP file in "Live Sales Notification (Recent Sales Popups)" version 1.4.18 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 222 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sales-pop.php" instead of "sales-pop-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin26,643 lines of code in 267 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 249 | 5,527 | 11,051 | 25,449 |
JSON | 6 | 0 | 0 | 427 |
Markdown | 5 | 151 | 0 | 426 |
XML | 4 | 22 | 0 | 263 |
YAML | 2 | 9 | 0 | 63 |
make | 1 | 6 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 219.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 18 | |
Traits | 0 | |
Classes | 220 | |
▷ Abstract classes | 18 | 8.18% |
▷ Concrete classes | 202 | 91.82% |
▷ Final classes | 4 | 1.98% |
Methods | 2,000 | |
▷ Static methods | 144 | 7.20% |
▷ Public methods | 1,766 | 88.30% |
▷ Protected methods | 105 | 5.25% |
▷ Private methods | 129 | 6.45% |
Functions | 84 | |
▷ Named functions | 37 | 44.05% |
▷ Anonymous functions | 47 | 55.95% |
Constants | 210 | |
▷ Global constants | 14 | 6.67% |
▷ Class constants | 196 | 93.33% |
▷ Public constants | 196 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon/icon_menu.png | 2.20KB | 0.62KB | ▼ 71.66% |