84% 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 scored84%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: 6.3.1
  • 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 /5,315 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
Installer ran successfully

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

A check of server-side resources used by 030 Ps Display Upload_path For WP3.5
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.06 ▼2.04
Dashboard /wp-admin3.31 ▲0.0145.76 ▼4.90
Posts /wp-admin/edit.php3.36 ▲0.0146.19 ▼0.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.77 ▲10.38
Media Library /wp-admin/upload.php3.23 ▲0.0139.15 ▲1.98

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for 030 Ps Display Upload_path For WP3.5
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.60 ▼0.981.81 ▲0.1443.23 ▲3.08
Dashboard /wp-admin2,209 ▲244.87 ▼0.0495.51 ▼3.7440.95 ▼5.32
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1439.22 ▲4.2839.13 ▲5.06
Add New Post /wp-admin/post-new.php1,533 ▼023.23 ▼0.05669.59 ▼17.2155.96 ▲1.54
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.08113.63 ▲11.0049.33 ▲3.12

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | 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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (deactivate the plugin), #2 (activate the plugin)
You can take inspiration from this readme.txt

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

The entry point to "030 Ps Display Upload_path For WP3.5" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP137115105
JavaScript1008
CSS1301

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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-1.png16.76KB6.42KB▼ 61.71%
screenshot-2.png26.94KB8.43KB▼ 68.70%