99% admin-alert-errors

Code Review | Admin Alert Errors

WordPress plugin Admin Alert Errors scored 99% from 54 tests.

About plugin

  • Plugin page: admin-alert-errors
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3
  • WordPress version: 5.9.2
  • First release: Jan 12, 2012
  • Latest release: Jan 12, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: gilgimech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 910 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Admin Alert Errors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.75 ▲0.78
Dashboard /wp-admin3.41 ▲0.0133.46 ▼0.86
Posts /wp-admin/edit.php3.65 ▲0.0137.96 ▲1.16
Add New Post /wp-admin/post-new.php6.88 ▼0.0892.85 ▼1,190.36
Media Library /wp-admin/upload.php3.30 ▲0.0124.41 ▼1.89

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Alert Errors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲5015.86 ▼0.136.20 ▼0.932.83 ▲0.48
Dashboard /wp-admin2,888 ▲346.13 ▼0.04117.65 ▼15.92156.72 ▲0.46
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0163.51 ▼1.13138.53 ▼2.61
Add New Post /wp-admin/post-new.php1,666 ▼9420.36 ▼2.33459.20 ▲19.55169.22 ▲10.45
Media Library /wp-admin/upload.php1,698 ▲35.52 ▼0.05144.59 ▲4.12188.08 ▲0.07

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
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
No output text or server-side errors detected 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, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Error Alerts)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

admin-alert-errors/adim-alert-errors.php 92% from 13 tests

The principal PHP file in "Admin Alert Errors" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-alert-errors.php" instead of "adim-alert-errors.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

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.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png146.61KB63.19KB▼ 56.90%