89% admin-alert-errors

Code Review | Admin Alert Errors

WordPress plugin Admin Alert Errors scored89%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: 6.3.1
  • 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 /1,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.63ms] Passed 4 tests

Analyzing server-side resources used by Admin Alert Errors
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.20 ▼1.96
Dashboard /wp-admin3.31 ▲0.0151.96 ▲3.22
Posts /wp-admin/edit.php3.36 ▲0.0153.94 ▲2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.30 ▼9.30
Media Library /wp-admin/upload.php3.23 ▲0.0135.56 ▼2.23

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Admin Alert Errors
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.85 ▼0.1046.69 ▲4.99
Dashboard /wp-admin2,192 ▲155.67 ▲0.0582.26 ▼7.6739.83 ▼5.39
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0540.55 ▼2.3936.04 ▼7.39
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▲0.39661.31 ▲19.1755.47 ▲1.32
Media Library /wp-admin/upload.php1,397 ▼64.28 ▲0.0697.53 ▼6.6446.89 ▲2.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Error Alerts) image missing
  • Donate link: Invalid url: "none"
You can look at the official readme.txt

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

"Admin Alert Errors" version 1.0'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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as 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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142334

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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%