83% wpfts-add-on-for-wp-download-manager

Code Review | WPFTS Add-on for WP Download Manager

WordPress plugin WPFTS Add-on for WP Download Manager scored83%from 54 tests.

About plugin

  • Plugin page: wpfts-add-on-for-...
  • Plugin version: 1.8.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2020
  • Latest release: Aug 11, 2022
  • Number of updates: 13
  • Update frequency: every 70.7 days
  • Top authors: Epsiloncool (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,062 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.38ms] Passed 4 tests

A check of server-side resources used by WPFTS Add-on for WP Download Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.82 ▼1.77
Dashboard /wp-admin3.34 ▼0.0152.57 ▼9.42
Posts /wp-admin/edit.php3.39 ▲0.0351.90 ▲0.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.90 ▼18.59
Media Library /wp-admin/upload.php3.26 ▲0.0338.52 ▲0.99

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/wpfts-add-on-for-wp-download-manager/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WPFTS Add-on for WP Download Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.74 ▲0.431.72 ▼0.0546.98 ▲1.32
Dashboard /wp-admin2,221 ▲215.87 ▼0.02101.88 ▲1.5141.04 ▼1.83
Posts /wp-admin/edit.php2,097 ▼32.03 ▼0.0235.34 ▼5.1136.20 ▼0.39
Add New Post /wp-admin/post-new.php1,545 ▲423.33 ▲5.06657.57 ▼57.7857.56 ▲5.78
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0896.41 ▼2.9341.88 ▼1.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpfts-add-on-for-wp-download-manager/index_filter.php:87

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
5 plugin tags: fulltext search, wpfts add-on, file search, wp download manager, content search

wpfts-add-on-for-wp-download-manager/wpfts-add-on-for-wp-download-manager.php 85% from 13 tests

The primary PHP file in "WPFTS Add-on for WP Download Manager" version 1.8.18 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin158 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25059158

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin