90% dismiss-server-nag

Code Review | Dismiss Serve Happy Nag

WordPress plugin Dismiss Serve Happy Nag scored90%from 54 tests.

About plugin

  • Plugin page: dismiss-server-nag
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2018
  • Latest release: Jan 15, 2019
  • Number of updates: 52
  • Update frequency: every 7.1 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.48ms] Passed 4 tests

Server-side resources used by Dismiss Serve Happy Nag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.53 ▼4.39
Dashboard /wp-admin3.34 ▲0.0444.89 ▼3.25
Posts /wp-admin/edit.php3.38 ▲0.0347.52 ▼1.81
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.39 ▼4.46
Media Library /wp-admin/upload.php3.25 ▲0.0336.47 ▲3.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dismiss Serve Happy Nag
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.321.67 ▼0.0941.94 ▼1.49
Dashboard /wp-admin2,206 ▲215.91 ▲0.02108.45 ▲2.3938.79 ▼4.66
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0334.54 ▼3.8832.64 ▼0.62
Add New Post /wp-admin/post-new.php1,533 ▼022.81 ▼0.34641.23 ▼14.5665.24 ▲12.22
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0097.39 ▲3.7540.86 ▼1.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: luciano-croce, disable-serve-happy-nag, remove-serve-happy-nag, servehappy, dismiss-serve-happy-nag

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

The principal PHP file in "Dismiss Serve Happy Nag" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121215147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions13
▷ Named functions13100.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