94% admin-user-message

Code Review | Admin User Message

WordPress plugin Admin User Message scored 94% from 54 tests.

About plugin

  • Plugin page: admin-user-message
  • Plugin version: 0.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 5.9.2
  • First release: Oct 30, 2014
  • Latest release: Nov 24, 2015
  • Number of updates: 14
  • Update frequency: every 27.9 days
  • Top authors: jonathanbardo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 3,008 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Admin User Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.46 ▲3.41
Dashboard /wp-admin3.45 ▲0.0434.40 ▲1.14
Posts /wp-admin/edit.php3.67 ▲0.0343.30 ▲5.91
Add New Post /wp-admin/post-new.php6.91 ▼0.06100.28 ▼1,154.30
Media Library /wp-admin/upload.php3.32 ▲0.0323.89 ▼2.75
Admin User Message /wp-admin/options-general.php?page=admin-user-message3.3324.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin User Message
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.74 ▲0.166.52 ▲0.482.60 ▼1.35
Dashboard /wp-admin2,897 ▲366.10 ▼0.07116.10 ▼18.17156.38 ▼7.57
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0064.12 ▼2.08135.65 ▼9.92
Add New Post /wp-admin/post-new.php1,671 ▼8719.38 ▼1.88384.24 ▼37.22158.12 ▲2.45
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.04146.77 ▲8.57188.22 ▲4.47
Admin User Message /wp-admin/options-general.php?page=admin-user-message1,5936.43125.91167.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-user-message/admin-user-message.php:396

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: message, admin

admin-user-message/admin-user-message.php 92% from 13 tests

"Admin User Message" version 0.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin841 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP386117471
Bourne Again Shell24525193
Markdown337084
PO File1141744
YAML26043
XML1306

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.50
▷ Minimum class complexity20.00
▷ Maximum class complexity27.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1588.24%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 are no PNG files in this plugin