94% 030-ps-display-upload-path-for-wp35

Code Review | 030 Ps Display Upload_path For WP3.5

WordPress plugin 030 Ps Display Upload_path For WP3.5 scored 94% from 54 tests.

About plugin

  • Plugin page: 030-ps-display-up...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 5.9.2
  • First release: Dec 26, 2012
  • Latest release: Jan 9, 2013
  • Number of updates: 14
  • Update frequency: every 1.1 days
  • Top authors: ouhinit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 4,795 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by 030 Ps Display Upload_path For WP3.5
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.87 ▲0.05
Dashboard /wp-admin3.43 ▲0.0232.71 ▼1.87
Posts /wp-admin/edit.php3.66 ▲0.0238.93 ▲3.08
Add New Post /wp-admin/post-new.php6.90 ▼0.07103.54 ▼1,152.40
Media Library /wp-admin/upload.php3.31 ▲0.0225.23 ▲1.21

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 030 Ps Display Upload_path For WP3.5
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.19 ▲0.195.85 ▼0.522.46 ▲0.25
Dashboard /wp-admin2,892 ▲376.12 ▼0.06116.77 ▼35.60154.74 ▼11.77
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0162.69 ▲0.01139.43 ▼1.18
Add New Post /wp-admin/post-new.php1,661 ▼516.86 ▼3.87398.28 ▼33.26157.83 ▲0.39
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.02137.44 ▲6.45184.43 ▼2.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/030-ps-display-upload-path-for-wp35/ps-display-upload-path-for-WP3.5.php:91

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (deactivate the plugin), #2 (activate the plugin)
You can look at the official readme.txt

030-ps-display-upload-path-for-wp35/ps-display-upload-path-for-WP3.5.php 92% from 13 tests

The main PHP file in "030 Ps Display Upload_path For WP3.5" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("030-ps-display-upload-path-for-wp35.php" instead of "ps-display-upload-path-for-WP3.5.php")

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 plugin114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png26.94KB8.43KB▼ 68.70%
screenshot-1.png16.76KB6.42KB▼ 61.71%