90% get-php-version

Code Review | Get Php Version

WordPress plugin Get Php Version scored90%from 54 tests.

About plugin

  • Plugin page: get-php-version
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.10-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: Jun 27, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sourav33 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.97ms] Passed 4 tests

An overview of server-side resources used by Get Php Version
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.40 ▼3.41
Dashboard /wp-admin3.31 ▼0.0349.71 ▼12.11
Posts /wp-admin/edit.php3.36 ▲0.0050.74 ▲1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.67 ▼0.35
Media Library /wp-admin/upload.php3.23 ▲0.0039.79 ▲0.01

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Get Php Version
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲9214.24 ▼0.042.05 ▲0.1941.26 ▲0.44
Dashboard /wp-admin2,230 ▲595.67 ▲0.0689.06 ▼5.3540.56 ▼1.04
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0640.26 ▼0.5834.49 ▼4.62
Add New Post /wp-admin/post-new.php1,528 ▲223.00 ▼0.12656.35 ▼38.7157.27 ▲12.32
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0998.66 ▼18.3447.54 ▼0.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === get-php-version === )
Please take inspiration from this readme.txt

get-php-version/get-php-version.php Passed 13 tests

The main PHP script in "Get Php Version" version 1.0.0 is automatically included on every request by WordPress
53 characters long description:
Just another Php Version plugin. Simple but flexible.

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
Good job! No executable or dangerous file extensions detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113915

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin