Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/external-database-based-actions/lib/edba-frontend.php+8
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.17MB] [CPU: ▼137.03ms] Passed 4 tests
A check of server-side resources used by External Database Based Actions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 32.11 ▲0.15 |
Dashboard /wp-admin | 3.26 ▲0.20 | 54.34 ▲8.59 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 45.69 ▲4.08 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.19 | 86.36 ▼551.63 |
Media Library /wp-admin/upload.php | 3.20 ▲0.19 | 34.86 ▼0.70 |
EDBA plugin /wp-admin/options-general.php?page=edba_admin_page | 3.08 | 25.45 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 704 new files
Database: no new tables, 3 new options
New WordPress options |
---|
edba_settings_query |
edba_settings_database |
edba_settings_action |
Browser metrics Passed 4 tests
Checking browser requirements for External Database Based Actions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,266 ▼330 | 15.65 ▲0.13 | 0.41 ▼7.70 | 8.39 ▼38.16 |
Dashboard /wp-admin | 2,978 ▲44 | 6.09 ▲0.14 | 137.83 ▼3.28 | 105.76 ▼1.99 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 66.32 ▼1.02 | 85.78 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,675 ▲175 | 18.79 ▲0.28 | 358.86 ▼10.78 | 110.29 ▼5.09 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 4.95 ▼0.06 | 150.16 ▼11.61 | 120.80 ▲0.83 |
EDBA plugin /wp-admin/options-general.php?page=edba_admin_page | 1,220 | 2.10 | 58.83 | 90.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/external-database-based-actions/lib/edba-installer.php+72
rmdir(wp-content/uploads/edba_uploads): Directory not empty
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=edba_admin_page
- > Notice in wp-content/plugins/external-database-based-actions/lib/edba-scripts.php+33
Undefined index: tab
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
- 18× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/external-database-based-actions/lib/edba-frontend.php
- > /wp-content/plugins/external-database-based-actions/lib/edba-admin-ajax-controller.php
- > /wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/examples/simple-query.php
- > /wp-content/plugins/external-database-based-actions/lib/edba-frontend-ajax-controller.php
- > /wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/examples/batch.php
- > /wp-content/plugins/external-database-based-actions/lib/edba-installer.php
- > /wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/examples/test.php
- > /wp-content/plugins/external-database-based-actions/lib/edba-admin.php
- > /wp-content/plugins/external-database-based-actions/external-database-based-actions.php
- > /wp-content/plugins/external-database-based-actions/lib/edba-functions.php
- 402× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php:40
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\tests\\BaseTest' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/google/auth/tests/FetchAuthTokenTest.php:29
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/google/apiclient-services/src/Google/Service/Sheets/BandedRange.php:18
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotTable.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/google/apiclient-services/src/Google/Service/Sheets/CandlestickDomain.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/external-database-based-actions/assets/google-api-php-client-2.2.0/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: woocommerce coupon, google, actions, external, database...
external-database-based-actions/external-database-based-actions.php Passed 13 tests
"External Database Based Actions" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Do configurable actions conditioned by an external database
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin71,464 lines of code in 664 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 543 | 9,908 | 30,759 | 55,280 |
JavaScript | 63 | 2,496 | 809 | 9,700 |
Markdown | 29 | 1,398 | 0 | 4,520 |
JSON | 17 | 0 | 0 | 1,123 |
CSS | 4 | 89 | 14 | 592 |
XML | 4 | 3 | 0 | 120 |
PO File | 1 | 34 | 34 | 84 |
YAML | 2 | 9 | 0 | 36 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 592.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 514 | |
▷ Abstract classes | 10 | 1.95% |
▷ Concrete classes | 504 | 98.05% |
▷ Final classes | 9 | 1.79% |
Methods | 3,908 | |
▷ Static methods | 132 | 3.38% |
▷ Public methods | 3,456 | 88.43% |
▷ Protected methods | 204 | 5.22% |
▷ Private methods | 248 | 6.35% |
Functions | 283 | |
▷ Named functions | 111 | 39.22% |
▷ Anonymous functions | 172 | 60.78% |
Constants | 328 | |
▷ Global constants | 28 | 8.54% |
▷ Class constants | 300 | 91.46% |
▷ Public constants | 300 | 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
There were not PNG files found in your plugin