Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼281.55ms] Passed 4 tests
A check of server-side resources used by WP Installer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 33.69 ▲14.22 |
Dashboard /wp-admin | 3.16 ▲0.11 | 38.17 ▲1.90 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 44.95 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.10 | 92.49 ▼1,125.86 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.48 ▼3.87 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Installer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,675 ▲93 | 16.18 ▲0.65 | 9.66 ▲2.12 | 47.30 ▼1.08 |
Dashboard /wp-admin | 2,953 ▲103 | 5.95 ▲0.14 | 136.06 ▲7.07 | 109.97 ▲1.04 |
Posts /wp-admin/edit.php | 2,732 ▲29 | 2.70 ▲0.00 | 65.93 ▲0.89 | 90.03 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,675 ▼178 | 18.92 ▼0.05 | 377.95 ▲22.18 | 108.35 ▼10.55 |
Media Library /wp-admin/upload.php | 1,798 ▲23 | 5.03 ▲0.03 | 158.32 ▲5.11 | 109.71 ▼6.70 |
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
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: launcher, settings, pages, posts, installer...
wp-installer/wpinstaller.php 92% from 13 tests
"WP Installer" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-installer.php" instead of "wpinstaller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected11,177 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1 | 160 | 6,963 |
PHP | 29 | 430 | 671 | 2,370 |
JavaScript | 2 | 294 | 233 | 1,805 |
SVG | 1 | 0 | 3 | 39 |
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.36 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 8 | 17.78% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.49MB with 0.36MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 498.57KB | 130.31KB | ▼ 73.86% |