90% wp-php-version-display

Code Review | WP PHP Version Display

WordPress plugin WP PHP Version Display scored 90% from 54 tests.

About plugin

  • Plugin page: wp-php-version-di...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 15
  • Update frequency: every 63.1 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 12,767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by WP PHP Version Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.98 ▼2.05
Dashboard /wp-admin3.31 ▲0.0145.30 ▼4.70
Posts /wp-admin/edit.php3.36 ▲0.0044.73 ▼3.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.77 ▼4.66
Media Library /wp-admin/upload.php3.23 ▲0.0040.44 ▲4.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP PHP Version Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.42 ▼0.231.71 ▼0.0738.73 ▼6.30
Dashboard /wp-admin2,218 ▲294.83 ▼0.13108.01 ▼10.0043.82 ▲1.22
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0839.87 ▼1.1134.21 ▼2.00
Add New Post /wp-admin/post-new.php1,542 ▲1918.43 ▼4.70587.72 ▼51.0957.91 ▲0.17
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0097.25 ▼2.0342.99 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

wp-php-version-display/wp-php-version-display.php Passed 13 tests

The primary PHP file in "WP PHP Version Display" version 2.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
Displays the current running PHP version inside "At a Glance" admin dashboard widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25307

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.25
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin