Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼137.27ms] Passed 4 tests
An overview of server-side resources used by Admin Quick Preview Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.90 ▲14.27 |
Dashboard /wp-admin | 3.08 ▲0.02 | 53.48 ▲9.31 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 54.09 ▲5.58 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 104.12 ▼555.96 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.95 ▼8.02 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Quick Preview Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲131 | 16.17 ▲0.57 | 9.47 ▼0.37 | 53.86 ▲5.68 |
Dashboard /wp-admin | 2,990 ▲56 | 6.56 ▲0.65 | 154.84 ▲2.19 | 117.48 ▲2.24 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 2.71 ▼0.01 | 73.31 ▲2.37 | 120.54 ▲26.92 |
Add New Post /wp-admin/post-new.php | 1,699 ▲12 | 18.47 ▼0.39 | 368.21 ▼54.89 | 144.56 ▲14.07 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.47 ▲0.45 | 143.90 ▼12.63 | 134.41 ▼6.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tungtop-quick-preview-post/admin-quick-preview-post.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in tungtop-quick-preview-post/assets to your readme.txt
tungtop-quick-preview-post/admin-quick-preview-post.php 92% from 13 tests
The main PHP script in "Admin Quick Preview Post" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("tungtop-quick-preview-post.php" instead of "admin-quick-preview-post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin164 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 11 | 3 | 81 |
PHP | 1 | 12 | 11 | 63 |
JavaScript | 1 | 3 | 2 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/screenshot.png | 186.17KB | 48.65KB | ▼ 73.87% |