89% announce-from-the-dashboard

Code Review | Announce from the Dashboard

WordPress plugin Announce from the Dashboard scored89%from 54 tests.

About plugin

  • Plugin page: announce-from-the...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Sep 17, 2012
  • Latest release: Feb 11, 2023
  • Number of updates: 66
  • Update frequency: every 57.6 days
  • Top authors: gqevu6bsiz (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

6,000+ active /18,091 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼3.15ms] Passed 4 tests

Server-side resources used by Announce from the Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1642.87 ▲2.57
Dashboard /wp-admin3.67 ▲0.3646.87 ▼2.44
Posts /wp-admin/edit.php3.72 ▲0.3652.45 ▲2.29
Add New Post /wp-admin/post-new.php6.18 ▲0.2995.18 ▼15.01
Media Library /wp-admin/upload.php3.53 ▲0.2936.45 ▲2.55
Announce from the Dashboard /wp-admin/options-general.php?page=announce_from_the_dashboard3.6036.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Announce from the Dashboard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.25 ▼0.131.72 ▲0.0842.03 ▲1.83
Dashboard /wp-admin2,207 ▲285.83 ▼0.0397.35 ▼11.8540.62 ▼4.13
Posts /wp-admin/edit.php2,090 ▼21.97 ▼0.0139.97 ▼3.6534.16 ▼4.47
Add New Post /wp-admin/post-new.php1,517 ▼1617.35 ▼5.95602.52 ▼59.0747.46 ▼12.99
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0797.20 ▼6.8038.90 ▼8.83
Announce from the Dashboard /wp-admin/options-general.php?page=announce_from_the_dashboard2,4116.04130.4132.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Settings Interface), #2 (Configuration Example), #3 (Display for Example), #4 (Metabox for Example)
You can take inspiration from this readme.txt

announce-from-the-dashboard/announce-from-the-dashboard.php 92% from 13 tests

The principal PHP file in "Announce from the Dashboard" v. 1.5.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected2,492 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,541332,292
PO File276102190
CSS1008
JavaScript1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.71
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes12100.00%
Methods121
▷ Static methods00.00%
▷ Public methods9276.03%
▷ Protected methods86.61%
▷ Private methods2117.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png23.59KB10.24KB▼ 56.61%
screenshot-3.png29.15KB12.01KB▼ 58.80%
screenshot-2.png36.53KB15.18KB▼ 58.45%
admin/assets/images/icon-sortable.png0.32KB0.17KB▼ 45.51%
screenshot-1.png18.50KB8.30KB▼ 55.12%