Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.64MB] [CPU: ▼4.53ms] Passed 4 tests
This is a short check of server-side resources used by Questpass
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.71 | 42.88 ▲5.93 |
Dashboard /wp-admin | 3.97 ▲0.63 | 47.02 ▼11.56 |
Posts /wp-admin/edit.php | 4.02 ▲0.67 | 48.65 ▼2.40 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 89.41 ▼4.59 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 37.14 ▲0.43 |
Questpass /wp-admin/options-general.php?page=questpass_admin_page | 3.97 | 41.27 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 285 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_questpass_subscription_users |
New WordPress options |
---|
questpass_javascript |
widget_recent-posts |
questpass_javascript_update_date |
can_compress_scripts |
widget_recent-comments |
questpass_active_campaigns_status |
questpass_subscriptions_status |
questpass_service_status |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Questpass
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.63 ▲0.28 | 1.70 ▲0.16 | 41.01 ▲1.23 |
Dashboard /wp-admin | 2,196 ▲16 | 5.53 ▼0.15 | 81.10 ▼2.64 | 36.36 ▼6.24 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.00 | 36.82 ▼2.18 | 33.47 ▼1.99 |
Add New Post /wp-admin/post-new.php | 6,254 ▲4,726 | 25.96 ▲2.93 | 912.41 ▲278.02 | 55.89 ▼6.42 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.03 | 95.72 ▼18.50 | 45.05 ▲0.07 |
Questpass /wp-admin/options-general.php?page=questpass_admin_page | 1,094 | 2.03 | 22.57 | 35.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/questpass/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_manualprepare.php
- > /wp-content/plugins/questpass/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_autoprepare.php
- > /wp-content/plugins/questpass/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_webhook.php
- 157× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/questpass/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/questpass/vendor_prefixed/guzzlehttp/guzzle/src/Exception/GuzzleException.php:6
- > PHP Warning
include(./vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/questpass/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_basic.php on line 7
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/questpass/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/questpass/templates/components/fields/post/multi-checkbox.php:10
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/questpass/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Questpass\\Logger\\LoggerInterface' not found in wp-content/plugins/questpass/src/Logger/WordpressLogger.php:10
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/questpass/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/questpass/templates/components/fields/post/text.php:10
- > PHP Fatal error
Uncaught Error: Interface 'QuestpassVendor\\League\\OAuth2\\Client\\Provider\\ResourceOwnerInterface' not found in wp-content/plugins/questpass/vendor_prefixed/league/oauth2-client/src/Provider/GenericResourceOwner.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: publishers, paywall, ads, subscriptions, advertising...
questpass/questpass.php Passed 13 tests
The main file in "Questpass" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
Questpass plugin displays ads based on the idea of questvertising.
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 plugin15,888 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 268 | 1,295 | 9,357 | 14,808 |
JSON | 1 | 0 | 0 | 845 |
PO File | 1 | 38 | 49 | 138 |
JavaScript | 2 | 5 | 0 | 40 |
XML | 2 | 0 | 0 | 37 |
CSS | 2 | 1 | 0 | 17 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 42 | |
Traits | 10 | |
Classes | 186 | |
▷ Abstract classes | 5 | 2.69% |
▷ Concrete classes | 181 | 97.31% |
▷ Final classes | 34 | 18.78% |
Methods | 1,413 | |
▷ Static methods | 162 | 11.46% |
▷ Public methods | 1,174 | 83.09% |
▷ Protected methods | 80 | 5.66% |
▷ Private methods | 159 | 11.25% |
Functions | 135 | |
▷ Named functions | 38 | 28.15% |
▷ Anonymous functions | 97 | 71.85% |
Constants | 191 | |
▷ Global constants | 25 | 13.09% |
▷ Class constants | 166 | 86.91% |
▷ Public constants | 155 | 93.37% |
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
2 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/questpass-sygnet.png | 0.44KB | 0.56KB | 0.00% |
assets/img/guestpass-widget.png | 207.77KB | 59.73KB | ▼ 71.25% |