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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼7.90ms] Passed 4 tests
Server-side resources used by Weeve Official Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 43.78 ▲5.37 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.03 ▼15.97 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.85 ▲2.82 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 82.87 ▼19.30 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.15 ▲0.86 |
Settings /wp-admin/admin.php?page=wpm_points | 3.38 | 32.62 |
Vouchers /wp-admin/admin.php?page=wpm_points_vouchers | 3.38 | 28.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpm_rewards_points |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wpm_points_settings |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Weeve Official Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.50 ▼0.74 | 8.87 ▲7.23 | 42.00 ▲2.57 |
Dashboard /wp-admin | 2,222 ▲42 | 5.53 ▼0.11 | 81.26 ▼7.32 | 40.31 ▲4.12 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.01 | 40.17 ▲0.42 | 38.77 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 18.43 ▼5.34 | 593.35 ▼112.63 | 49.47 ▼6.05 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▲0.08 | 94.85 ▼24.36 | 41.60 ▼7.26 |
Settings /wp-admin/admin.php?page=wpm_points | 987 | 1.89 | 23.82 | 27.43 |
Vouchers /wp-admin/admin.php?page=wpm_points_vouchers | 886 | 1.99 | 22.77 | 23.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpm_rewards_points
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- wpm_points_settings
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weeve-official-integration/templates/profile_history.php
- > /wp-content/plugins/weeve-official-integration/templates/vouchers_page.php
- > /wp-content/plugins/weeve-official-integration/templates/settings_page.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: user_history in wp-content/plugins/weeve-official-integration/templates/profile_history.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/weeve-official-integration/templates/ajax_get_points.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/weeve-official-integration/wpm-weeve.php:43
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/weeve-official-integration/templates/profile_history.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/weeve-official-integration/templates/user_rewards_dashboard.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (General Settings), #2 (Vouchers Settings)
weeve-official-integration/wpm-weeve.php 85% from 13 tests
The main PHP file in "Weeve Official Integration" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("weeve-official-integration.php" instead of "wpm-weeve.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin1,320 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 190 | 157 | 1,039 |
CSS | 1 | 31 | 1 | 205 |
JavaScript | 1 | 11 | 0 | 76 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 101.00 |
▷ Minimum class complexity | 101.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 5.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/sensei.png | 1.76KB | 1.89KB | 0.00% |
templates/assets/img/pro.png | 0.88KB | 0.96KB | 0.00% |