Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/vk-lock/VkLock_Plugin.php+40
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.10ms] Passed 4 tests
Server-side resources used by VK Lock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.92 ▼5.67 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.60 ▼9.20 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 46.33 ▼3.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.42 ▼9.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.35 ▲0.49 |
VK Lock /wp-admin/plugins.php?page=VkLock_PluginSettings | 3.23 | 31.65 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 17 new options
New WordPress options |
---|
can_compress_scripts |
VkLock_Plugin_noAccessNoticeHeader |
VkLock_Plugin_showDefaultPasswordForm |
theysaidso_admin_options |
VkLock_Plugin__installed |
VkLock_Plugin__version |
VkLock_Plugin_signinVKButtonText |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VK Lock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼1.29 | 1.79 ▲0.14 | 39.68 ▼5.70 |
Dashboard /wp-admin | 2,210 ▲19 | 5.96 ▲0.11 | 99.28 ▼4.86 | 40.22 ▼4.94 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.05 | 40.10 ▲4.76 | 36.14 ▲1.86 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,726 | 21.41 ▼1.78 | 844.24 ▲158.44 | 76.60 ▲18.06 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.17 ▼0.02 | 99.51 ▼9.67 | 41.25 ▼4.82 |
VK Lock /wp-admin/plugins.php?page=VkLock_PluginSettings | 978 | 2.05 | 22.40 | 30.35 |
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
- Zombie WordPress options were found after uninstall: 17 options
- VkLock_Plugin_signinVKButtonText
- can_compress_scripts
- VkLock_Plugin_noAccessTimelimit
- VkLock_Plugin_siteApplicationID
- widget_recent-comments
- VkLock_Plugin__version
- db_upgraded
- VkLock_Plugin_cssClassButton
- VkLock_Plugin_noAccessNoticeHeader
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-lock/vk-lock.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in vk-lock/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
vk-lock/vk-lock.php Passed 13 tests
The entry point to "VK Lock" version 0.1.8 is a PHP file that has certain tags in its header comment area
69 characters long description:
Restrict page\post access to authorized VKontakte group members only.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,037 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 326 | 729 | 922 |
PO File | 1 | 39 | 40 | 115 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 62.50% |
▷ Protected methods | 34 | 35.42% |
▷ Private methods | 2 | 2.08% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin