Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼144.01ms] Passed 4 tests
Analyzing server-side resources used by Wtyczka StarBonus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.09 | 24.46 ▲1.96 |
Dashboard /wp-admin | 3.15 ▲0.08 | 35.83 ▼4.39 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 32.92 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 78.11 ▼576.05 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 27.91 ▲3.86 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 401 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_starbonus_order_status_config |
New WordPress options |
---|
starbonus_order_timestamp_limit |
starbonus_widget_side |
starbonus_expanded |
starbonus_skin |
starbonus_widget_below |
starbonus_shipping_cost |
starbonus_open_widget |
starbonus_animation |
starbonus_url_api |
starbonus_show_on_shop |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wtyczka StarBonus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,690 ▲89 | 15.53 ▼0.10 | 8.14 ▲0.93 | 75.80 ▲2.51 |
Dashboard /wp-admin | 2,953 ▲58 | 6.12 ▼0.10 | 114.92 ▼17.11 | 198.21 ▲25.41 |
Posts /wp-admin/edit.php | 2,761 ▲24 | 3.11 ▼0.12 | 61.39 ▼2.39 | 134.00 ▼8.83 |
Add New Post /wp-admin/post-new.php | 3,930 ▲232 | 19.04 ▲2.28 | 447.00 ▲1.86 | 181.21 ▲17.75 |
Media Library /wp-admin/upload.php | 1,772 ▲20 | 5.74 ▲0.22 | 125.07 ▼10.13 | 207.69 ▲23.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_starbonus_order_status_config
- Zombie WordPress options detected upon uninstall: 11 options
- starbonus_widget_side
- starbonus_min_width
- starbonus_animation
- starbonus_skin
- starbonus_widget_below
- starbonus_open_widget
- starbonus_order_timestamp_limit
- starbonus_expanded
- starbonus_shipping_cost
- starbonus_url_api
- ...
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 no errors were found, this is by no means 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 take a closer look at the following
- 296× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Stdlib\\Hydrator\\HydratorInterface' not found in wp-content/plugins/starbonus-widget/vendor/zendframework/zend-stdlib/Zend/Stdlib/Hydrator/Aggregate/AggregateHydrator.php:20
- > PHP Fatal error
Uncaught Error: Class 'OAuth\\Common\\Exception\\Exception' not found in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/Exception/InvalidAccessTypeException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Zend\\Stdlib\\StringWrapper\\AbstractStringWrapper' not found in wp-content/plugins/starbonus-widget/vendor/zendframework/zend-stdlib/src/StringWrapper/Native.php:15
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/examples/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'OAuth\\OAuth1\\Service\\AbstractService' not found in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Etsy.php:14
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/examples/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'OAuth\\Common\\Exception\\Exception' not found in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/src/OAuth/Common/Http/Exception/TokenResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Stdlib\\Hydrator\\HydratorInterface' not found in wp-content/plugins/starbonus-widget/vendor/zendframework/zend-stdlib/src/Hydrator/Aggregate/AggregateHydrator.php:20
- > PHP Fatal error
Uncaught Error: Class 'Zend\\EventManager\\Event' not found in wp-content/plugins/starbonus-widget/vendor/zendframework/zend-stdlib/Zend/Stdlib/Hydrator/Aggregate/ExtractEvent.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/starbonus-widget/vendor/lusitanian/oauth/tests/Unit/OAuth1/Service/TwitterTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: starbonus, wtyczka, cashback, widget
starbonus-widget/starbonus-widget.php Passed 13 tests
"Wtyczka StarBonus" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
18 characters long description:
Wtyczka StarBonus.
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
Everything looks great! No dangerous files found in this plugin19,846 lines of code in 319 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 299 | 5,043 | 10,634 | 19,002 |
JSON | 7 | 0 | 0 | 397 |
Markdown | 6 | 95 | 0 | 290 |
XML | 3 | 5 | 4 | 91 |
YAML | 4 | 7 | 0 | 66 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 64 | |
Traits | 10 | |
Classes | 253 | |
▷ Abstract classes | 25 | 9.88% |
▷ Concrete classes | 228 | 90.12% |
▷ Final classes | 10 | 4.39% |
Methods | 1,829 | |
▷ Static methods | 89 | 4.87% |
▷ Public methods | 1,663 | 90.92% |
▷ Protected methods | 147 | 8.04% |
▷ Private methods | 19 | 1.04% |
Functions | 42 | |
▷ Named functions | 4 | 9.52% |
▷ Anonymous functions | 38 | 90.48% |
Constants | 330 | |
▷ Global constants | 11 | 3.33% |
▷ Class constants | 319 | 96.67% |
▷ Public constants | 319 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 0.53KB | 0.70KB | 0.00% |