Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/adquesto/src/Questo/Service/StatusService.php+36
file_get_contents(https://api.adquesto.com/v1/services//status): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Server metrics [RAM: ▲0.12MB] [CPU: ▼147.29ms] Passed 4 tests
A check of server-side resources used by Adquesto
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 24.68 ▲2.66 |
Dashboard /wp-admin | 3.24 ▲0.17 | 32.67 ▼6.65 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 30.50 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 68.90 ▼584.15 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 33.97 ▲3.10 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- The plugin illegally modified 1 file (0.08KB) outside of "wp-content/plugins/adquesto/" and "wp-content/uploads/"
- (new file) wp-content/adquesto-plugin/plugin.cache
Filesystem: 214 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_adquesto_migration_versions |
wp_adquesto_subscription_user |
New WordPress options |
---|
questo_javascript_last_update_time |
questo_display_settings |
questo_positioning |
questo_token |
questo_subscription_available |
questo_oauth_client_id |
questo_has_active_campaigns |
questo_javascript |
questo_service_status |
questo_oauth_secret |
Browser metrics Passed 4 tests
An overview of browser requirements for Adquesto
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲105 | 15.97 ▲0.37 | 5.79 ▲0.97 | 76.87 ▲0.25 |
Dashboard /wp-admin | 2,970 ▲74 | 6.02 ▼0.11 | 114.77 ▼14.14 | 165.33 ▼7.12 |
Posts /wp-admin/edit.php | 2,786 ▲49 | 3.24 ▲0.00 | 63.97 ▲0.48 | 138.88 ▲1.47 |
Add New Post /wp-admin/post-new.php | 3,894 ▲79 | 18.80 ▼0.64 | 442.56 ▼7.30 | 193.93 ▲28.46 |
Media Library /wp-admin/upload.php | 1,792 ▲40 | 5.53 ▼0.01 | 150.00 ▲3.23 | 195.60 ▲6.94 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 5 options in the database
- questo_positioning
- questo_display_settings
- questo_service_status
- questo_has_active_campaigns
- questo_subscription_available
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/examples/example_webhook.php
- > /wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/examples/example_autoprepare.php
- > /wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/examples/example_manualprepare.php
- 94× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Questo\\Service\\BaseDatabaseService' not found in wp-content/plugins/adquesto/src/Questo/Migration/BaseMigration.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Adquesto\\SDK\\JavascriptStorage' not found in wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/src/WordpressStorage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/adquesto/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/adquesto/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Questo\\Migration\\BaseMigration' not found in wp-content/plugins/adquesto/src/Questo/Migration/Version20181105124500.php:8
- > PHP Fatal error
Uncaught Error: Interface 'fkooman\\OAuth\\Client\\Http\\HttpClientInterface' not found in wp-content/plugins/adquesto/vendor/fkooman/oauth2-client/tests/TestHttpClient.php:31
- > PHP Fatal error
Uncaught Error: Interface 'fkooman\\OAuth\\Client\\TokenStorageInterface' not found in wp-content/plugins/adquesto/vendor/fkooman/oauth2-client/src/PdoTokenStorage.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Adquesto\\SDK\\ContextProvider' not found in wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/src/ElementsContextProvider.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/adquesto/vendor/adquesto/adquesto-php-sdk/tests/ContentTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE\\ConstantTime\\Base64' not found in wp-content/plugins/adquesto/vendor/paragonie/constant_time_encoding/src/Base64UrlSafe.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: advertising, paywall, subscriptions, membership, ads...
adquesto/adquesto.php Passed 13 tests
"Adquesto" version 1.1.50's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
The new revolution in online advertising
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin11,324 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 1,952 | 4,714 | 9,530 |
JSON | 10 | 0 | 0 | 690 |
Markdown | 10 | 182 | 0 | 470 |
CSS | 5 | 27 | 21 | 250 |
XML | 6 | 10 | 1 | 123 |
PO File | 2 | 54 | 0 | 116 |
JavaScript | 3 | 11 | 4 | 102 |
YAML | 2 | 4 | 0 | 24 |
SVG | 2 | 0 | 1 | 16 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 11 | |
Traits | 2 | |
Classes | 107 | |
▷ Abstract classes | 12 | 11.21% |
▷ Concrete classes | 95 | 88.79% |
▷ Final classes | 1 | 1.05% |
Methods | 668 | |
▷ Static methods | 118 | 17.66% |
▷ Public methods | 589 | 88.17% |
▷ Protected methods | 49 | 7.34% |
▷ Private methods | 30 | 4.49% |
Functions | 31 | |
▷ Named functions | 24 | 77.42% |
▷ Anonymous functions | 7 | 22.58% |
Constants | 108 | |
▷ Global constants | 30 | 27.78% |
▷ Class constants | 78 | 72.22% |
▷ Public constants | 78 | 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
4 PNG files occupy 0.42MB with 0.23MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/big-logo.png | 11.03KB | 4.49KB | ▼ 59.30% |
public/img/placeholder-en.png | 207.83KB | 64.87KB | ▼ 68.79% |
public/img/placeholder-pl.png | 208.59KB | 65.06KB | ▼ 68.81% |
public/img/tinymce-icon.png | 1.15KB | 0.92KB | ▼ 19.85% |