94% admin-notices-manager

Code Review | Admin Notices Manager

WordPress plugin Admin Notices Manager scored 94% from 54 tests.

About plugin

  • Plugin page: admin-notices-man...
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 5.8.1
  • First release: Aug 26, 2020
  • Latest release: Mar 10, 2022
  • Number of updates: 20
  • Update frequency: every 28.3 days
  • Top authors: WPWhiteSecurity (90%)robert681 (15%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 7,547 total downloads


Plugin footprint Passed 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.06MB] [CPU: ▼178.71ms] Passed 4 tests

Analyzing server-side resources used by Admin Notices Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0125.08 ▲1.93
Dashboard /wp-admin3.14 ▲0.0732.63 ▼10.41
Posts /wp-admin/edit.php3.23 ▲0.1231.92 ▲2.69
Add New Post /wp-admin/post-new.php5.50 ▲0.0669.97 ▼707.10
Media Library /wp-admin/upload.php3.08 ▲0.0823.75 ▲0.73
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings3.0620.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Notices Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,732 ▲13116.05 ▲0.129.93 ▲5.0775.65 ▼1.96
Dashboard /wp-admin2,996 ▲976.47 ▲0.36120.62 ▼14.80167.92 ▼7.68
Posts /wp-admin/edit.php2,779 ▲393.22 ▼0.0280.44 ▲14.83137.06 ▼4.29
Add New Post /wp-admin/post-new.php2,375 ▼1,32915.96 ▼2.46425.95 ▼13.10169.71 ▼8.51
Media Library /wp-admin/upload.php1,828 ▲765.86 ▲0.35133.58 ▼11.20182.78 ▼0.78
Admin Notices /wp-admin/options-general.php?page=admin_notices_settings1,5253.5788.96130.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/admin-notices-manager/admin-notices-manager.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: notices, dashboard notices, manage admin notices, hide admin notices, admin notices

admin-notices-manager/admin-notices-manager.php Passed 13 tests

The main PHP script in "Admin Notices Manager" version 1.3.1 is automatically included on every request by WordPress
86 characters long description:
Better manage admin notices & never miss an important WordPress and developer message.

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 plugin21,246 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
PO File29397256

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity37.10
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods2933.33%
▷ Public methods7282.76%
▷ Protected methods1011.49%
▷ Private methods55.75%
▷ Named functions1275.00%
▷ Anonymous functions425.00%
▷ Global constants4100.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
No PNG files were detected