100% admin-announce

Code Review | Admin Announce

WordPress plugin Admin Announce scored 100% from 54 tests.

About plugin

  • Plugin page: admin-announce
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.9
  • WordPress version: 5.9.2
  • First release: Oct 6, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: tleen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,041 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Admin Announce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0360.37 ▲4.69
Dashboard /wp-admin3.45 ▲0.0457.47 ▲0.26
Posts /wp-admin/edit.php3.67 ▲0.0387.35 ▲45.90
Add New Post /wp-admin/post-new.php6.91 ▼0.0699.16 ▼1,192.39
Media Library /wp-admin/upload.php3.32 ▲0.0226.13 ▲0.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Announce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲6916.22 ▲0.315.73 ▼0.662.03 ▼0.03
Dashboard /wp-admin2,936 ▲826.94 ▲0.77123.49 ▼16.69169.49 ▲5.83
Posts /wp-admin/edit.php2,744 ▲723.56 ▲0.3366.55 ▼11.72168.02 ▲27.45
Add New Post /wp-admin/post-new.php1,704 ▲3816.47 ▼5.22417.26 ▼36.78168.35 ▲12.81
Media Library /wp-admin/upload.php1,747 ▲466.10 ▲0.58116.16 ▼24.59206.38 ▲26.58

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found


Plugin configuration 96% from 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
2 plugin tags: banner, admin

admin-announce/wp-admin-announce.php 92% from 13 tests

"Admin Announce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-announce.php" instead of "wp-admin-announce.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 detected118 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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 functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 images were found in this plugin