84% ry-nice-upload-filename

Code Review | RY Nice Upload FileName

WordPress plugin RY Nice Upload FileName scored84%from 54 tests.

About plugin

  • Plugin page: ry-nice-upload-fi...
  • Plugin version: 1.0.7.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2015
  • Latest release: Mar 30, 2023
  • Number of updates: 28
  • Update frequency: every 101.8 days
  • Top authors: fantasyworld (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,571 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼4.50ms] Passed 4 tests

A check of server-side resources used by RY Nice Upload FileName
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.60 ▼1.56
Dashboard /wp-admin3.31 ▲0.0147.28 ▼5.40
Posts /wp-admin/edit.php3.36 ▲0.0150.06 ▲1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.09 ▼10.94
Media Library /wp-admin/upload.php3.23 ▲0.0038.53 ▼0.10

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for RY Nice Upload FileName
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.181.67 ▲0.0642.01 ▼2.88
Dashboard /wp-admin2,195 ▲215.61 ▼0.0492.24 ▲0.3543.20 ▲4.44
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0140.01 ▲4.3037.44 ▲0.55
Add New Post /wp-admin/post-new.php1,526 ▼1123.58 ▲5.53691.11 ▲54.6452.05 ▼30.36
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.01102.71 ▼2.6040.85 ▼3.28

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ry-nice-upload-filename/ry-nice-upload-filename.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: upload, filename

ry-nice-upload-filename/ry-nice-upload-filename.php Passed 13 tests

"RY Nice Upload FileName" version 1.0.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Rewrite upload filename if not english or number letter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131120

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin