89% filter-users-download-monitor

Code Review | Filter Users Addon for Download Monitor

WordPress plugin Filter Users Addon for Download Monitor scored89%from 54 tests.

About plugin

  • Plugin page: filter-users-down...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Nov 30, 2020
  • Number of updates: 15
  • Update frequency: every 92.1 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Filter Users Addon for Download Monitor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.01 ▼6.00
Dashboard /wp-admin3.31 ▲0.0145.88 ▼0.75
Posts /wp-admin/edit.php3.36 ▲0.0145.13 ▼18.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.55 ▼1.06
Media Library /wp-admin/upload.php3.23 ▲0.0134.48 ▼1.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Filter Users Addon for Download Monitor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.391.81 ▼0.3445.23 ▲1.41
Dashboard /wp-admin2,209 ▲245.85 ▲0.7797.66 ▼6.8238.12 ▼6.52
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0134.77 ▼4.4734.21 ▲0.07
Add New Post /wp-admin/post-new.php1,534 ▲1523.28 ▲0.13648.81 ▼6.7748.15 ▼4.58
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.0295.27 ▼2.8241.66 ▼1.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: users, filter, download-monitor, addon

filter-users-download-monitor/filter-users-download-monitor.php 85% from 13 tests

The principal PHP file in "Filter Users Addon for Download Monitor" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0" instead of "3.9")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
Success! There were no dangerous files found in this plugin143 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13450143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected