Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.45ms] Passed 4 tests
This is a short check of server-side resources used by WordPress WVIP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.30 ▲6.41 |
Dashboard /wp-admin | 3.45 ▲0.11 | 50.92 ▼20.43 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.58 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 89.13 ▼10.73 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 43.48 ▲9.96 |
购买统计 /wp-admin/admin.php?page=wvip_wpstats | 3.37 | 35.02 |
会员日志 /wp-admin/admin.php?page=wvip_buylog | 3.37 | 50.75 |
WVIP设置 /wp-admin/admin.php?page=wvip_pack | 3.37 | 31.18 |
VIP会员 /wp-admin/admin.php?page=wvip_users | 3.37 | 32.26 |
非VIP会员 /wp-admin/admin.php?page=wvip_wpusers | 3.37 | 37.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wvip_buylogs |
wp_wvip_users |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress WVIP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.22 ▼1.20 | 1.69 ▼0.07 | 43.20 ▼0.25 |
Dashboard /wp-admin | 2,255 ▲73 | 5.85 ▼0.03 | 101.36 ▼6.02 | 48.27 ▲6.60 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.02 ▲0.03 | 39.16 ▲1.06 | 44.96 ▲11.14 |
Add New Post /wp-admin/post-new.php | 1,574 ▲55 | 23.11 ▼0.07 | 678.13 ▼23.10 | 59.48 ▲9.26 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.20 ▼0.01 | 97.33 ▼16.31 | 51.75 ▲4.49 |
购买统计 /wp-admin/admin.php?page=wvip_wpstats | 854 | 2.02 | 28.97 | 60.13 |
会员日志 /wp-admin/admin.php?page=wvip_buylog | 1,226 | 2.02 | 25.43 | 77.85 |
WVIP设置 /wp-admin/admin.php?page=wvip_pack | 948 | 2.15 | 25.08 | 64.05 |
VIP会员 /wp-admin/admin.php?page=wvip_users | 980 | 2.03 | 27.24 | 50.13 |
非VIP会员 /wp-admin/admin.php?page=wvip_wpusers | 1,018 | 2.03 | 23.66 | 55.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wvip_users
- wp_wvip_buylogs
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-wvip/views/stats.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-wvip/views/users.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-wvip/views/setting.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-wvip/views/wpusers.php:4
- > PHP Notice
Undefined variable: current_url in wp-content/plugins/wp-wvip/views/users.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-wvip/views/buylog.php:4
- > PHP Notice
Undefined variable: current_url in wp-content/plugins/wp-wvip/views/wpusers.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-wvip/classes/admin.class.php:15
- > PHP Notice
Undefined variable: current_url in wp-content/plugins/wp-wvip/views/buylog.php on line 3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: vip
wp-wvip/index.php 92% from 13 tests
This is the main PHP file of "WordPress WVIP" version 0.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-wvip.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,076 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 256 | 73 | 1,075 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 43 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin