Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.19ms] Passed 4 tests
An overview of server-side resources used by Import VK
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.08 ▲1.52 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.05 ▼5.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 39.29 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.10 ▼11.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.35 ▼4.24 |
Import VK /wp-admin/tools.php?page=import-vk | 3.28 | 35.99 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Import VK
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.22 ▼1.17 | 1.70 ▼0.37 | 44.58 ▲1.48 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.94 | 99.20 ▼10.12 | 37.91 ▼9.98 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 32.93 ▼2.29 | 32.57 ▼4.89 |
Add New Post /wp-admin/post-new.php | 1,538 ▲16 | 23.28 ▲0.19 | 668.91 ▼5.71 | 64.02 ▼11.48 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.03 | 96.98 ▼21.89 | 40.58 ▼9.02 |
Import VK /wp-admin/tools.php?page=import-vk | 1,097 | 2.57 | 43.62 | 49.94 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=import-vk
- > Notice in wp-content/plugins/import-vk/inc/settings-page.php+134
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following
- 2× 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/import-vk/import-vk.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/import-vk/inc/settings-page.php:4
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: records, export, import, posts, vkcom...
import-vk/import-vk.php Passed 13 tests
Analyzing the main PHP file in "Import VK" version 1.0.1
71 characters long description:
The plugin allows you to import posts from any VKontakte (vk.com) wall.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,692 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 330 | 138 | 711 |
PHP | 2 | 30 | 93 | 375 |
CSS | 5 | 49 | 61 | 318 |
SVG | 1 | 0 | 0 | 288 |
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.26 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin