Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼15.92ms] Passed 4 tests
Analyzing server-side resources used by Virtual Queue
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.59 | 14.39 ▼27.83 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.56 ▼2.19 |
Posts /wp-admin/edit.php | 3.24 ▼0.12 | 28.66 ▼16.99 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 79.71 ▼16.66 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.37 ▲3.04 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_vq_status |
wp_vq_sessions |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Virtual Queue
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲59 | 14.23 ▼0.36 | 1.70 ▼0.01 | 41.49 ▼0.97 |
Dashboard /wp-admin | 2,218 ▲38 | 5.67 ▼0.00 | 84.34 ▼8.71 | 40.01 ▼7.45 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.02 ▼0.11 | 37.01 ▼0.66 | 33.62 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.14 ▼0.32 | 682.13 ▼18.78 | 55.46 ▼0.84 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.14 ▼0.01 | 111.52 ▲1.02 | 47.51 ▼0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/virtual-queue/public/partials/virtual-queue-public-display.php
- > /wp-content/plugins/virtual-queue/admin/partials/virtual-queue-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: queue, virtual queue, virtual
virtual-queue/virtual-queue.php Passed 13 tests
"Virtual Queue" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Keep a virtual queue in case you have more traffic than you should.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected576 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 206 | 663 | 554 |
Markdown | 1 | 9 | 0 | 16 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 14 | 28.57% |
▷ Public methods | 32 | 65.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 34.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/admin-settings.png | 192.38KB | 52.85KB | ▼ 72.53% |