10% gp-download-name

Code Review | GP Download Name

WordPress plugin GP Download Name scored10%from 54 tests.

About plugin

  • Plugin page: gp-download-name
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2017
  • Latest release: Apr 17, 2023
  • Number of updates: 13
  • Update frequency: every 173.2 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,219 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/gp-download-name/gp-download-name.php+137
    Uncaught Error: Class 'GP_Format' not found in wp-content/plugins/gp-download-name/gp-download-name.php:137
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

This is a short check of server-side resources used by GP Download Name
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.64 ▼5.63
Dashboard /wp-admin3.31 ▲0.0043.86 ▼7.52
Posts /wp-admin/edit.php3.36 ▲0.0047.36 ▼0.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.14 ▲8.91
Media Library /wp-admin/upload.php3.23 ▲0.0035.94 ▼2.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GP Download Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.28 ▼1.081.80 ▼0.1942.37 ▼5.76
Dashboard /wp-admin2,206 ▲185.86 ▼0.04107.34 ▼6.4640.82 ▼5.43
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0239.94 ▲5.2135.48 ▲3.47
Add New Post /wp-admin/post-new.php1,535 ▲1623.32 ▲0.07654.34 ▼28.8660.24 ▲5.32
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.0495.49 ▼7.9540.67 ▼6.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GP_Format' not found in wp-content/plugins/gp-download-name/gp-download-name.php:137

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)
No browser issues were found

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: glotpress, translation

gp-download-name/gp-download-name.php Passed 13 tests

The primary PHP file in "GP Download Name" version 0.6 is used by WordPress to initiate all plugin functionality
55 characters long description:
Use a customizable template for the download file name.

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
There were no executable files found in this plugin103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13522103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin