90% admin-announce

Code Review | Admin Announce

WordPress plugin Admin Announce scored90%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: 6.3.1
  • 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,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Admin Announce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.86 ▲1.18
Dashboard /wp-admin3.33 ▼0.0151.60 ▼11.46
Posts /wp-admin/edit.php3.38 ▲0.0350.92 ▼0.40
Add New Post /wp-admin/post-new.php5.93 ▲0.0597.85 ▼10.26
Media Library /wp-admin/upload.php3.25 ▲0.0342.15 ▲5.03

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Announce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.38 ▲0.011.92 ▲0.2043.14 ▼0.61
Dashboard /wp-admin2,243 ▲665.87 ▲0.1887.96 ▲2.1240.33 ▲0.66
Posts /wp-admin/edit.php2,126 ▲262.34 ▲0.3839.84 ▼1.4236.37 ▼2.21
Add New Post /wp-admin/post-new.php1,584 ▲3920.80 ▼2.30646.91 ▼21.2631.87 ▼21.60
Media Library /wp-admin/upload.php1,452 ▲524.40 ▲0.1697.16 ▼9.4850.06 ▲4.06

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: admin, banner

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
You should first fix the following items:
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected118 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192592
JavaScript20016
CSS10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin