Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.11ms] Passed 4 tests
An overview of server-side resources used by Readers Wall
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.20 ▼8.48 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.44 ▼12.16 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.40 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.95 ▼13.79 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.13 ▲0.36 |
About /wp-admin/admin.php?page=leniy-plugins | 3.24 | 30.55 |
Readers Wall读者墙 /wp-admin/admin.php?page=leniy-plugins/RW.php | 3.21 | 29.88 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
qw_RW_shownumber |
widget_recent-posts |
widget_theysaidso_widget |
qw_RW_days |
can_compress_scripts |
qw_RW_css |
qw_RW_commentatleast |
qw_RW_shortcode |
qw_RW_manualcss |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Readers Wall
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.58 ▼0.62 | 1.66 ▼0.58 | 41.58 ▼1.95 |
Dashboard /wp-admin | 2,235 ▲47 | 5.82 ▼0.08 | 99.93 ▼5.32 | 90.28 ▲50.44 |
Posts /wp-admin/edit.php | 2,118 ▲32 | 2.00 ▼0.01 | 39.75 ▲3.73 | 39.50 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.24 ▼5.05 | 684.84 ▲1.65 | 69.79 ▲1.42 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.10 ▼0.09 | 96.82 ▼10.16 | 81.78 ▲33.87 |
About /wp-admin/admin.php?page=leniy-plugins | 895 | 1.86 | 25.18 | 60.02 |
Readers Wall读者墙 /wp-admin/admin.php?page=leniy-plugins/RW.php | 1,021 | 1.92 | 26.24 | 65.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
- > Notice in wp-content/plugins/readers-wall/readers-wall.php+63
Undefined index: qw_RW_btn
- > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
- > Notice in wp-content/plugins/readers-wall/readers-wall.php+71
Undefined index: qw_RW_resetbtn
- > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
- > Notice in wp-content/plugins/readers-wall/readers-wall.php+75
Undefined index: qw_RW_savebtn
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/readers-wall/readers-wall.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readers-wall/inc/leniy_admin_menu.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=leniy-plugins
- > Network (severe)
https://blog.leniy.org/project/wordpress - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
- > Network (severe)
https://blog.leniy.org/readers-wall.html - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (screenshot-1.jpg)
readers-wall/readers-wall.php Passed 13 tests
The main PHP file in "Readers Wall" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
高度自定制性能的读者墙
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
There were no executable files found in this plugin392 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 31 | 236 |
CSS | 2 | 3 | 5 | 156 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/leniy.png | 1.36KB | 1.79KB | 0.00% |
inc/leniy-ico.png | 0.45KB | 0.61KB | 0.00% |
resource/default.png | 9.56KB | 4.80KB | ▼ 49.77% |