Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼300.00ms] Passed 4 tests
A check of server-side resources used by CPS | Age Verification
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 56.45 ▲7.27 |
Dashboard /wp-admin | 3.69 ▲0.29 | 34.89 ▲1.62 |
Posts /wp-admin/edit.php | 3.92 ▲0.28 | 38.80 ▲2.04 |
Add New Post /wp-admin/post-new.php | 7.16 ▲0.19 | 99.82 ▼1,197.99 |
Media Library /wp-admin/upload.php | 3.57 ▲0.27 | 25.13 ▼5.65 |
Age Verification /wp-admin/admin.php?page=surbma-yes-no-popup-menu | 3.55 | 26.35 |
All plugins /wp-admin/admin.php?page=cps-plugins-menu | 3.56 | 380.47 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 255 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for CPS | Age Verification
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,056 ▲333 | 16.33 ▲0.55 | 12.61 ▲6.82 | 2.19 ▼0.42 |
Dashboard /wp-admin | 3,063 ▲209 | 6.22 ▲0.03 | 117.97 ▼17.95 | 177.03 ▲16.82 |
Posts /wp-admin/edit.php | 2,851 ▲160 | 3.26 ▲0.02 | 63.81 ▲2.15 | 148.68 ▲8.71 |
Add New Post /wp-admin/post-new.php | 1,897 ▲145 | 23.43 ▲2.13 | 404.90 ▼37.72 | 182.86 ▲23.31 |
Media Library /wp-admin/upload.php | 1,854 ▲159 | 5.56 ▲0.10 | 124.19 ▼7.88 | 202.19 ▲15.75 |
Age Verification /wp-admin/admin.php?page=surbma-yes-no-popup-menu | 4,554 | 6.02 | 125.67 | 189.04 |
All plugins /wp-admin/admin.php?page=cps-plugins-menu | 2,809 | 3.53 | 98.00 | 180.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=surbma-yes-no-popup-menu
- > Notice in wp-content/plugins/surbma-yes-no-popup/pages/settings.php+405
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/surbma-yes-no-popup/surbma-yes-no-popup.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(): Failed opening 'CPS_DIR/pages/plugins-page.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-yes-no-popup/cps/lib/admin.php on line 4
- > PHP Warning
Use of undefined constant CPS_DIR - assumed 'CPS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/surbma-yes-no-popup/cps/lib/admin.php on line 4
- > PHP Warning
include_once(): Failed opening 'SURBMA_YES_NO_POPUP_PLUGIN_DIR/pages/settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-yes-no-popup/lib/admin.php on line 3
- > PHP Warning
include_once(SURBMA_YES_NO_POPUP_PLUGIN_DIR/pages/settings.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-yes-no-popup/lib/admin.php on line 3
- > PHP Warning
Use of undefined constant SURBMA_YES_NO_POPUP_PLUGIN_DIR - assumed 'SURBMA_YES_NO_POPUP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/surbma-yes-no-popup/lib/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-yes-no-popup/pages/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-yes-no-popup/lib/admin.php:17
- > PHP Warning
include_once(CPS_DIR/pages/plugins-page.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-yes-no-popup/cps/lib/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-yes-no-popup/cps/lib/admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/surbma-yes-no-popup/cps/start.php:6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cps-plugins-menu
- > Network (severe)
wp-content/plugins/surbma-yes-no-popup/cps/images/cps-logo.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: age verify, yesno, age verification, popup, woocommerce...
surbma-yes-no-popup/surbma-yes-no-popup.php 92% from 13 tests
The entry point to "CPS | Age Verification" version 7.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin34,252 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 4,691 | 180 | 11,549 |
CSS | 6 | 49 | 3,059 | 9,574 |
LESS | 148 | 4,565 | 4,989 | 8,523 |
Markdown | 9 | 777 | 0 | 2,017 |
PHP | 7 | 117 | 156 | 1,411 |
JSON | 4 | 22 | 0 | 1,087 |
SVG | 2 | 0 | 2 | 74 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cps/assets/images/cps-logo.png | 0.88KB | 1.03KB | 0.00% |