Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.76ms] Passed 4 tests
An overview of server-side resources used by WP User Rewards
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.83 ▲4.51 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.37 ▲1.78 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 43.84 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 81.39 ▼7.21 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.15 ▲0.21 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP User Rewards
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.08 | 1.84 ▲0.02 | 36.74 ▼4.48 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.04 | 97.12 ▼12.79 | 38.31 ▼3.58 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.97 ▼0.04 | 35.48 ▲0.16 | 32.52 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.32 ▼4.92 | 645.49 ▼33.49 | 62.35 ▲4.76 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.03 | 95.87 ▼4.56 | 44.39 ▲0.04 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-user-rewards/wp-user-rewards.php:17
- > 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 97% 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: Screenshot #1 (Display rewards at the end of article. 在文章的末尾显示打赏内容) image missing
wp-user-rewards/wp-user-rewards.php Passed 13 tests
The main PHP script in "WP User Rewards" version 0.1 is automatically included on every request by WordPress
109 characters long description:
Adds user reward/donate fields to user profiles, including Wechat pay QRCode, Alipay QRCode, and PayPal link.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected591 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 72 | 11 | 396 |
JavaScript | 2 | 3 | 0 | 78 |
CSS | 1 | 14 | 0 | 70 |
PO File | 1 | 17 | 2 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 0 | 0.00% |
▷ Public methods | 16 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 27.27% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 58.20KB | 23.17KB | ▼ 60.19% |
img/bg.png | 4.82KB | 2.93KB | ▼ 39.12% |
screenshot-2.png | 85.31KB | 36.62KB | ▼ 57.08% |