Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.75ms] Passed 4 tests
An overview of server-side resources used by bidorbuy Store Integrator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.75 ▲4.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 53.20 ▼3.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.09 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.91 ▼16.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.78 ▲4.16 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 315 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for bidorbuy Store Integrator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▲0.05 | 1.67 ▲0.12 | 43.33 ▲1.26 |
Dashboard /wp-admin | 2,195 ▲21 | 5.53 ▼0.10 | 84.82 ▼7.68 | 40.70 ▲1.61 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 36.59 ▼4.96 | 35.17 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.29 ▲0.29 | 663.29 ▲43.70 | 66.04 ▲13.75 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.24 ▲0.07 | 101.66 ▼3.78 | 45.80 ▼5.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bidorbuystoreintegrator/templates/banner.tpl.php
- 172× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Request' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/ApacheRequest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/ResponseHeaderBagTest.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\File' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/File/FakeFile.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/File/MimeType/MimeTypeTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\ativeSessionHandler' not found in wp-content/plugins/bidorbuystoreintegrator/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php:19
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Requires php: The plugin version is formatted incorrectly
bidorbuystoreintegrator/BidorbuyStoreIntegrator.php 92% from 13 tests
The primary PHP file in "bidorbuy Store Integrator" version 2.12.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bidorbuystoreintegrator.php" instead of "BidorbuyStoreIntegrator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected33,649 lines of code in 289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 264 | 6,766 | 13,999 | 31,162 |
Markdown | 9 | 371 | 0 | 881 |
JSON | 9 | 0 | 0 | 764 |
CSS | 1 | 70 | 3 | 379 |
XML | 3 | 20 | 0 | 240 |
JavaScript | 2 | 49 | 14 | 222 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 17 | |
Traits | 4 | |
Classes | 236 | |
▷ Abstract classes | 9 | 3.81% |
▷ Concrete classes | 227 | 96.19% |
▷ Final classes | 1 | 0.44% |
Methods | 2,378 | |
▷ Static methods | 180 | 7.57% |
▷ Public methods | 1,960 | 82.42% |
▷ Protected methods | 275 | 11.56% |
▷ Private methods | 143 | 6.01% |
Functions | 90 | |
▷ Named functions | 42 | 46.67% |
▷ Anonymous functions | 48 | 53.33% |
Constants | 291 | |
▷ Global constants | 6 | 2.06% |
▷ Class constants | 285 | 97.94% |
▷ Public constants | 285 | 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
4 compressed PNG files occupy 0.05MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tooltip.png | 0.24KB | 0.28KB | 0.00% |
assets/images/sample_banner.png | 2.76KB | 2.76KB | 0.07% |
assets/images/home-screen-picture.png | 38.02KB | 35.68KB | ▼ 6.17% |
assets/images/bidorbuy.png | 7.04KB | 3.80KB | ▼ 46.03% |