Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.97ms] Passed 4 tests
This is a short check of server-side resources used by VK Plugin Beta Tester
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.08 ▼5.49 |
Dashboard /wp-admin | 3.44 ▲0.14 | 201.31 ▲146.17 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.05 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.96 ▼2.90 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.28 ▼0.94 |
VK Plugin Beta Tester Setting /wp-admin/options-general.php?page=vk-plugin-beta-tester-setting | 3.33 | 205.70 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
vkpbt_active_plugin_for_beta_notice |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for VK Plugin Beta Tester
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.76 ▲0.40 | 1.66 ▼0.87 | 39.14 ▼7.39 |
Dashboard /wp-admin | 2,245 ▲68 | 5.67 ▲0.03 | 95.42 ▼2.24 | 77.39 ▲33.94 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.04 | 41.56 ▲5.92 | 43.20 ▲8.02 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.30 ▲0.20 | 589.94 ▼102.36 | 65.12 ▲13.52 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▲0.02 | 102.07 ▼12.03 | 42.59 ▼2.85 |
VK Plugin Beta Tester Setting /wp-admin/options-general.php?page=vk-plugin-beta-tester-setting | 872 | 2.00 | 31.03 | 32.64 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- vkpbt_active_plugin_for_beta_notice
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vk-plugin-beta-tester/tests/bootstrap.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-plugin-beta-tester/inc/vk-admin/package/class-vk-admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-plugin-beta-tester/inc/vk-admin/package/class-vk-admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vk-plugin-beta-tester/vk-plugin-beta-tester.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/vk-plugin-beta-tester/tests/test-01.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Choose the plugins to show beta notifications.), #2 (You can check Beta version manually by clicking "Check for beta updates".)
- Tested up to: Invalid version format
- Requires at least: Invalid version format
- Donate link: Please fix this invalid url: ""
vk-plugin-beta-tester/vk-plugin-beta-tester.php 92% from 13 tests
The primary PHP file in "VK Plugin Beta Tester" version 0.2.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,315 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 13,508 |
PHP | 5 | 212 | 185 | 661 |
Sass | 1 | 23 | 3 | 462 |
CSS | 2 | 28 | 9 | 316 |
JavaScript | 2 | 31 | 48 | 127 |
Bourne Shell | 1 | 21 | 11 | 123 |
YAML | 1 | 7 | 0 | 58 |
XML | 2 | 4 | 12 | 49 |
Ruby | 1 | 0 | 2 | 7 |
Markdown | 1 | 1 | 0 | 4 |
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.29 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 18 | 36.73% |
▷ Public methods | 48 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.04% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.53MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 964.23KB | 308.57KB | ▼ 68.00% |
inc/vk-admin/package/images/no-image.png | 9.74KB | 4.66KB | ▼ 52.17% |
screenshot-2.png | 498.82KB | 148.40KB | ▼ 70.25% |
inc/vk-admin/package/images/billvektor_banner.png | 33.56KB | 14.06KB | ▼ 58.09% |
inc/vk-admin/package/images/vektor_logo-2020.png | 6.48KB | 5.37KB | ▼ 17.11% |