89% dismiss-update-nag

Code Review | Dismiss Core Update Nag Dashboard Widget

WordPress plugin Dismiss Core Update Nag Dashboard Widget scored89%from 54 tests.

About plugin

  • Plugin page: dismiss-update-nag
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Feb 4, 2019
  • Number of updates: 45
  • Update frequency: every 8.7 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /938 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
Install script ran successfully

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

Analyzing server-side resources used by Dismiss Core Update Nag Dashboard Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.35 ▼9.75
Dashboard /wp-admin3.32 ▲0.0143.20 ▼5.67
Posts /wp-admin/edit.php3.37 ▲0.0147.74 ▲2.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.57 ▲3.91
Media Library /wp-admin/upload.php3.24 ▲0.0139.69 ▲7.65

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dismiss Core Update Nag Dashboard Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲3113.62 ▼1.051.82 ▼0.2040.07 ▼4.59
Dashboard /wp-admin2,183 ▼85.83 ▲0.9696.17 ▼7.2940.11 ▼1.08
Posts /wp-admin/edit.php2,066 ▼232.00 ▼0.0639.75 ▲4.8834.69 ▼2.62
Add New Post /wp-admin/post-new.php1,526 ▲1218.64 ▲0.80601.40 ▼104.1856.61 ▲4.93
Media Library /wp-admin/upload.php1,362 ▼294.22 ▲0.0698.46 ▲5.0239.91 ▼5.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Dashboard Widget Enabled - Screenshot 1 of 4), #2 (Dashboard Widget Disabled - Screenshot 2 of 4), #3 (As single Plugin Enabled - Screenshot 3 of 4), #4 (As mu-plugins Enabled - Screenshot 4 of 4)
You can look at the official readme.txt

dismiss-update-nag/dismiss-update-nag.php 92% from 13 tests

The principal PHP file in "Dismiss Core Update Nag Dashboard Widget" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)

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 detected213 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP126256213

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions18
▷ Named functions18100.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
No PNG files were detected