Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.45ms] Passed 4 tests
Analyzing server-side resources used by Host PHP Info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.12 | 34.92 ▲12.30 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.69 ▼1.97 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 37.78 ▼4.65 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 83.79 ▼571.84 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.30 ▲0.68 |
View PHP Info /wp-admin/tools.php?page=host-php-info-options | 2.76 | 21.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Host PHP Info
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.03 ▲0.31 | 8.98 ▼1.91 | 41.22 ▼9.91 |
Dashboard /wp-admin | 2,972 ▲38 | 5.94 ▼0.03 | 135.60 ▼12.75 | 112.22 ▲4.96 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 67.26 ▲2.97 | 92.54 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,875 ▲260 | 19.25 ▼2.74 | 391.47 ▲116.14 | 109.16 ▲5.07 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.05 ▼0.00 | 141.24 ▼11.87 | 124.62 ▲7.56 |
View PHP Info /wp-admin/tools.php?page=host-php-info-options | 5,379 | 0.90 | 0.10 | 51.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/host-php-info/info.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/host-php-info/host-php-info.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: php info, php
host-php-info/host-php-info.php Passed 13 tests
"Host PHP Info" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
View PHP Info of your host. 查看伺服器的PHP信息
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin73 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 4 | 4 | 42 |
PHP | 2 | 13 | 25 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin