10% adquesto

Code Review | Adquesto

WordPress plugin Adquesto scored 10% from 54 tests.

About plugin

  • Plugin page: adquesto
  • Plugin version: 1.1.50
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.3.0
  • WordPress version: 5.8.1
  • First release: Oct 10, 2018
  • Latest release: Nov 6, 2020
  • Number of updates: 26
  • Update frequency: every 29.4 days
  • Top authors: adquesto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,295 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0724.68 ▲2.66
Dashboard /wp-admin3.24 ▲0.1732.67 ▼6.65
Posts /wp-admin/edit.php3.29 ▲0.1830.50 ▼1.02
Add New Post /wp-admin/post-new.php5.54 ▲0.1068.90 ▼584.15
Media Library /wp-admin/upload.php3.12 ▲0.1233.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
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Adquesto
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲10515.97 ▲0.375.79 ▲0.9776.87 ▲0.25
Dashboard /wp-admin2,970 ▲746.02 ▼0.11114.77 ▼14.14165.33 ▼7.12
Posts /wp-admin/edit.php2,786 ▲493.24 ▲0.0063.97 ▲0.48138.88 ▲1.47
Add New Post /wp-admin/post-new.php3,894 ▲7918.80 ▼0.64442.56 ▼7.30193.93 ▲28.46
Media Library /wp-admin/upload.php1,792 ▲405.53 ▼0.01150.00 ▲3.23195.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


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:
LanguageFilesBlank linesComment linesLines of code
PO File2540116
Bourne Shell1203

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 code0.34
Average class complexity8.34
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
▷ Abstract classes1211.21%
▷ Concrete classes9588.79%
▷ Final classes11.05%
▷ Static methods11817.66%
▷ Public methods58988.17%
▷ Protected methods497.34%
▷ Private methods304.49%
▷ Named functions2477.42%
▷ Anonymous functions722.58%
▷ Global constants3027.78%
▷ Class constants7872.22%
▷ Public constants78100.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
FileSize - originalSize - compressedSavings
public/img/big-logo.png11.03KB4.49KB▼ 59.30%
public/img/placeholder-en.png207.83KB64.87KB▼ 68.79%
public/img/placeholder-pl.png208.59KB65.06KB▼ 68.81%
public/img/tinymce-icon.png1.15KB0.92KB▼ 19.85%