89% host-php-info

Code Review | Host PHP Info

WordPress plugin Host PHP Info scored 89% from 54 tests.

About plugin

  • Plugin page: host-php-info
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 5.8.1
  • First release: Feb 19, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 11
  • Update frequency: every 1.4 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active / 9,831 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1234.92 ▲12.30
Dashboard /wp-admin3.07 ▲0.0142.69 ▼1.97
Posts /wp-admin/edit.php3.13 ▲0.0137.78 ▼4.65
Add New Post /wp-admin/post-new.php5.43 ▼0.0183.79 ▼571.84
Media Library /wp-admin/upload.php3.02 ▲0.0131.30 ▲0.68
View PHP Info /wp-admin/tools.php?page=host-php-info-options2.7621.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.03 ▲0.318.98 ▼1.9141.22 ▼9.91
Dashboard /wp-admin2,972 ▲385.94 ▼0.03135.60 ▼12.75112.22 ▲4.96
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0167.26 ▲2.9792.54 ▲4.11
Add New Post /wp-admin/post-new.php1,875 ▲26019.25 ▼2.74391.47 ▲116.14109.16 ▲5.07
Media Library /wp-admin/upload.php1,812 ▲25.05 ▼0.00141.24 ▼11.87124.62 ▲7.56
View PHP Info /wp-admin/tools.php?page=host-php-info-options5,3790.900.1051.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


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:
LanguageFilesBlank linesComment linesLines of code
PO File24442

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 code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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