99% wp-users-media

Code Review | WP Users Media

WordPress plugin WP Users Media scored 99% from 54 tests.

About plugin

  • Plugin page: wp-users-media
  • Plugin version: 4.2.3
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7.2
  • WordPress version: 5.8.1
  • First release: May 15, 2014
  • Latest release: Jun 2, 2021
  • Number of updates: 49
  • Update frequency: every 52.5 days
  • Top authors: WebKreativ (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

4,000+ active / 42,197 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Users Media
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.89 ▲15.59
Dashboard /wp-admin3.07 ▲0.0241.80 ▼6.26
Posts /wp-admin/edit.php3.16 ▲0.0536.86 ▼14.30
Add New Post /wp-admin/post-new.php5.43 ▼0.0088.10 ▼568.26
Media Library /wp-admin/upload.php3.02 ▲0.0234.83 ▲0.30
WP Users Media /wp-admin/options-general.php?page=wpusme_settings_page2.9928.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Users Media
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲11716.36 ▲0.767.97 ▼0.7645.84 ▲2.47
Dashboard /wp-admin2,983 ▲555.92 ▼0.07147.86 ▼20.39106.87 ▼5.55
Posts /wp-admin/edit.php2,749 ▲102.73 ▲0.0267.69 ▼7.1894.24 ▲7.45
Add New Post /wp-admin/post-new.php1,622 ▼2,02320.81 ▲2.60294.47 ▼179.12108.09 ▲1.85
Media Library /wp-admin/upload.php1,820 ▲135.04 ▲0.04154.96 ▲4.42117.71 ▲1.17
WP Users Media /wp-admin/options-general.php?page=wpusme_settings_page1,2542.0956.4397.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: files, wp admin, photo, users, user...

wp-users-media/index.php 85% from 13 tests

The primary PHP file in "WP Users Media" version 4.2.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-users-media.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin402 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP254170190
CSS110184
JavaScript16828

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods16.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/favicon-96x96.png3.39KB2.57KB▼ 24.06%