79% minimum-version

Code Review | Minimum Version

WordPress plugin Minimum Version scored79%from 54 tests.

About plugin

  • Plugin page: minimum-version
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2013
  • Latest release: Mar 31, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: huntermaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /701 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.63ms] Passed 4 tests

An overview of server-side resources used by Minimum Version
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.49 ▼2.22
Dashboard /wp-admin3.40 ▲0.1046.86 ▼6.00
Posts /wp-admin/edit.php3.45 ▲0.1055.34 ▲2.36
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.57 ▼22.40
Media Library /wp-admin/upload.php3.32 ▲0.1033.07 ▼3.90
Minimum Version /wp-admin/plugins.php?page=minimum-version-plugins3.3630.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Minimum Version
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.78 ▼0.691.68 ▼0.2142.57 ▼1.58
Dashboard /wp-admin2,207 ▲194.85 ▼1.01112.91 ▲3.5542.43 ▲0.39
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0540.35 ▲3.2933.59 ▲0.43
Add New Post /wp-admin/post-new.php1,531 ▲1723.27 ▲5.65664.94 ▲8.4854.43 ▼5.33
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.04102.88 ▼0.1342.69 ▼1.86
Minimum Version /wp-admin/plugins.php?page=minimum-version-plugins8172.0327.9027.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/plugins.php?page=minimum-version-plugins
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=minimum-version-plugins
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimum-version/minimum-version.php:160

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: plugin, admin, version

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

"Minimum Version" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Shows the minimum version of Wordpress that a plugin requires

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11745100
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ 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 methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin