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 gracefully, with no errors
Server metrics [RAM: ▲0.74MB] [CPU: ▲6.37ms] Passed 4 tests
This is a short check of server-side resources used by VRTs - Visual Regression Tests
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 41.55 ▲7.19 |
Dashboard /wp-admin | 4.04 ▲0.73 | 51.94 ▲3.98 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 57.53 ▲8.08 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.83 | 105.25 ▲16.63 |
Media Library /wp-admin/upload.php | 3.97 ▲0.73 | 42.72 ▲6.23 |
Tests /wp-admin/admin.php?page=vrts | 4.11 | 46.77 |
Alerts /wp-admin/admin.php?page=vrts-alerts | 4.06 | 41.56 |
Settings /wp-admin/admin.php?page=vrts-settings | 3.95 | 37.97 |
Upgrade /wp-admin/admin.php?page=vrts-upgrade | 3.95 | 36.73 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 103 new files
Database: 2 new tables, 17 new options
New tables |
---|
wp_vrts_alerts |
wp_vrts_tests |
New WordPress options |
---|
vrts_project_id |
vrts_alerts_db_version |
vrts_tier_id |
widget_recent-comments |
vrts_project_token |
widget_theysaidso_widget |
vrts_homepage_added |
vrts_has_subscription |
vrts_total_tests |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by VRTs - Visual Regression Tests
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲140 | 14.35 ▼0.05 | 1.65 ▲0.09 | 37.33 ▼0.53 |
Dashboard /wp-admin | 2,288 ▲107 | 5.74 ▲0.05 | 93.48 ▼18.22 | 37.32 ▼5.19 |
Posts /wp-admin/edit.php | 2,214 ▲114 | 2.20 ▲0.19 | 40.81 ▲0.88 | 36.77 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,615 ▲89 | 24.22 ▲1.16 | 638.51 ▼45.30 | 45.86 ▼21.70 |
Media Library /wp-admin/upload.php | 1,493 ▲90 | 4.29 ▲0.13 | 99.67 ▼3.29 | 41.27 ▼0.55 |
Tests /wp-admin/admin.php?page=vrts | 1,285 | 2.32 | 43.13 | 33.60 |
Alerts /wp-admin/admin.php?page=vrts-alerts | 1,138 | 2.15 | 29.16 | 32.65 |
Settings /wp-admin/admin.php?page=vrts-settings | 971 | 2.25 | 27.31 | 30.16 |
Upgrade /wp-admin/admin.php?page=vrts-upgrade | 2,223 | 3.10 | 72.09 | 51.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/visual-regression-tests/components/metabox-classic-editor/index.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/visual-regression-tests/components/admin-notification/views/admin-notification-new-test-added.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/visual-regression-tests/components/admin-notification/index.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Vrts\\Core\\Utilities\\Async_Request' not found in wp-content/plugins/visual-regression-tests/includes/core/utilities/class-background-process.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/visual-regression-tests/includes/list-tables/class-alerts-list-table.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/visual-regression-tests/components/alerts-page/views/alerts-page-view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/visual-regression-tests/components/admin-notification/views/admin-notification-get-started.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/visual-regression-tests/components/admin-notification/views/admin-notification-test-disabled.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/visual-regression-tests/components/metabox-classic-editor/metabox-notifications/metabox-notification-connection-failed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/visual-regression-tests/components/metabox-classic-editor/metabox-notifications/metabox-notification-unlock-more-tests.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
5 plugin tags: tests, vrts, visual regression, visual, regression
visual-regression-tests/visual-regression-tests.php Passed 13 tests
The main PHP script in "VRTs - Visual Regression Tests" version 1.6.0 is automatically included on every request by WordPress
88 characters long description:
Test your website for unwanted visual changes. Run automatic tests and spot differences.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,952 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,091 | 2,129 | 4,960 |
JavaScript | 14 | 173 | 161 | 1,291 |
Sass | 8 | 164 | 2 | 691 |
CSS | 2 | 0 | 0 | 8 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 38 | |
▷ Abstract classes | 2 | 5.26% |
▷ Concrete classes | 36 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 315 | |
▷ Static methods | 110 | 34.92% |
▷ Public methods | 276 | 87.62% |
▷ Protected methods | 22 | 6.98% |
▷ Private methods | 17 | 5.40% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin