84% free-php-version-info

Code Review | Free PHP version info

WordPress plugin Free PHP version info scored84%from 54 tests.

About plugin

  • Plugin page: free-php-version-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2021
  • Latest release: Dec 7, 2022
  • Number of updates: 17
  • Update frequency: every 40.4 days
  • Top authors: funlus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /516 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼3.35ms] Passed 4 tests

Analyzing server-side resources used by Free PHP version info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.46 ▼0.70
Dashboard /wp-admin3.33 ▲0.0244.90 ▼1.45
Posts /wp-admin/edit.php3.38 ▲0.0245.72 ▼4.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.33 ▼7.00
Media Library /wp-admin/upload.php3.25 ▲0.0238.18 ▲1.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Free PHP version info: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.16 ▼1.435.26 ▲3.1939.30 ▼5.45
Dashboard /wp-admin2,219 ▲315.86 ▲0.78103.05 ▼16.2839.45 ▼4.58
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0339.17 ▲2.8334.78 ▲1.67
Add New Post /wp-admin/post-new.php1,555 ▲2023.25 ▼0.21614.29 ▼57.4555.11 ▲3.33
Media Library /wp-admin/upload.php1,398 ▲104.21 ▲0.0196.35 ▼10.1741.27 ▼3.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-php-version-info/FreePHPversioninfo.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
8 plugin tags: proactive, php, security support, support days, free...

free-php-version-info/FreePHPversioninfo.php 85% from 13 tests

"Free PHP version info" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-php-version-info.php" instead of "FreePHPversioninfo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected137 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1352486
PO File1141551

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin