84% admin-user-message

Code Review | Admin User Message

WordPress plugin Admin User Message scored84%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: 6.3.1
  • 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

200+ active /3,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Admin User Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.59 ▲4.27
Dashboard /wp-admin3.34 ▲0.0346.23 ▼4.70
Posts /wp-admin/edit.php3.39 ▲0.0344.02 ▼3.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.11 ▼16.69
Media Library /wp-admin/upload.php3.26 ▲0.0336.85 ▲3.41
Admin User Message /wp-admin/options-general.php?page=admin-user-message3.2632.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Admin User Message
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.75 ▼0.631.71 ▼0.4844.51 ▲5.18
Dashboard /wp-admin2,213 ▲245.86 ▼0.03101.50 ▼1.3837.72 ▼8.15
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0237.02 ▲1.5732.56 ▼2.15
Add New Post /wp-admin/post-new.php1,536 ▲822.88 ▼0.26653.18 ▲9.6167.84 ▲13.68
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0693.43 ▼6.7642.13 ▼1.30
Admin User Message /wp-admin/options-general.php?page=admin-user-message1,2935.41102.4349.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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 server-side errors or warnings when accessed directly:
    • > 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: message, admin

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

The principal PHP file in "Admin User Message" v. 0.0.9 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were 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

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected