Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼146.18ms] Passed 4 tests
Analyzing server-side resources used by Hostvn Admin Optimize
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 40.05 ▲12.17 |
Dashboard /wp-admin | 3.13 ▲0.08 | 40.69 ▼11.94 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 51.29 ▼3.82 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 108.62 ▼555.76 |
Media Library /wp-admin/upload.php | 3.20 ▲0.19 | 38.71 ▼13.19 |
Hostvn AO Settings /wp-admin/options-general.php?page=hvn-admin-optimize-settings | 3.17 | 36.94 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 1 new option
New WordPress options |
---|
hostvn_admin_optimize |
Browser metrics Passed 4 tests
Hostvn Admin Optimize: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,341 ▼1,271 | 15.44 ▼0.11 | 11.62 ▲0.30 | 51.09 ▼5.33 |
Dashboard /wp-admin | 1,578 ▼1,358 | 5.55 ▼0.45 | 126.08 ▼67.17 | 88.03 ▼39.42 |
Posts /wp-admin/edit.php | 2,698 ▼41 | 2.71 ▲0.00 | 70.06 ▼4.73 | 86.16 ▼12.71 |
Add New Post /wp-admin/post-new.php | 1,649 ▼34 | 17.75 ▼0.67 | 393.24 ▼70.22 | 120.31 ▼4.90 |
Media Library /wp-admin/upload.php | 1,766 ▼41 | 5.01 ▲0.00 | 164.72 ▼11.92 | 124.83 ▼15.66 |
Hostvn AO Settings /wp-admin/options-general.php?page=hvn-admin-optimize-settings | 1,120 | 2.08 | 61.24 | 78.91 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #5, #6, #7 in hostvn-admin-optimize/assets to your readme.txt
hostvn-admin-optimize/hostvn-ao.php 92% from 13 tests
The primary PHP file in "Hostvn Admin Optimize" version 1.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hostvn-admin-optimize.php" instead of "hostvn-ao.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,559 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,672 |
PHP | 23 | 278 | 356 | 2,273 |
CSS | 1 | 64 | 0 | 357 |
PO File | 2 | 109 | 109 | 254 |
JavaScript | 3 | 0 | 5 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 19.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 2 | 1.39% |
▷ Public methods | 137 | 95.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.86% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/zalo-min-150x150.png | 6.99KB | 3.25KB | ▼ 53.53% |
assets/img/messenger.png | 20.22KB | 6.58KB | ▼ 67.47% |