10% phpinfo-print

Code Review | PHPINFO Print

WordPress plugin PHPINFO Print scored10%from 54 tests.

About plugin

  • Plugin page: phpinfo-print
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Sep 18, 2013
  • Latest release: Nov 1, 2016
  • Number of updates: 12
  • Update frequency: every 95.2 days
  • Top authors: Dejan Batanjac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /7,585 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/phpinfo-print/phpinfo-print.php+36
    require_once(lib/phpinfo-class.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.05ms] Passed 4 tests

Analyzing server-side resources used by PHPINFO Print
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.46 ▼2.35
Dashboard /wp-admin3.31 ▲0.0048.41 ▼3.67
Posts /wp-admin/edit.php3.36 ▲0.0048.18 ▼7.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.23 ▼14.83
Media Library /wp-admin/upload.php3.23 ▲0.0037.68 ▲0.72

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

PHPINFO Print: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.20 ▼1.151.86 ▼0.3042.21 ▼2.71
Dashboard /wp-admin2,221 ▲215.91 ▲0.05116.05 ▲7.9540.57 ▼0.23
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0133.70 ▼2.6635.65 ▲2.99
Add New Post /wp-admin/post-new.php1,545 ▼023.35 ▲0.08636.42 ▼12.5048.90 ▼7.39
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.11102.64 ▲0.1143.39 ▼4.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/phpinfo-print/lib/phpinfoMenu.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: settings, webserver, hosting data, phpinfo

phpinfo-print/phpinfo-print.php Passed 13 tests

The main PHP file in "PHPINFO Print" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Displays phpinfo() in a traditional style

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin60 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3222360

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin