80% dismiss-gutenberg-nag

Code Review | Dismiss Gutenberg Nag

WordPress plugin Dismiss Gutenberg Nag scored80%from 54 tests.

About plugin

  • Plugin page: dismiss-gutenberg...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2017
  • Latest release: Nov 25, 2018
  • Number of updates: 278
  • Update frequency: every 1.4 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,986 total downloads

Benchmarks

Plugin footprint 65% 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.79MB] [CPU: ▼32.34ms] Passed 4 tests

Server-side resources used by Dismiss Gutenberg Nag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.0746.28 ▲2.05
Dashboard /wp-admin3.43 ▼0.1431.77 ▼24.86
Posts /wp-admin/edit.php3.43 ▼0.2529.60 ▼23.56
Add New Post /wp-admin/post-new.php3.43 ▼2.7228.20 ▼72.38
Media Library /wp-admin/upload.php3.43 ▼0.0627.52 ▼8.55

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
dismiss_gutenberg_nag_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dismiss Gutenberg Nag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.162.09 ▼0.4644.40 ▲1.25
Dashboard /wp-admin2,192 ▲155.57 ▼0.0684.88 ▼9.8038.33 ▼10.29
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0235.65 ▼5.4833.40 ▼3.77
Add New Post /wp-admin/post-new.php1,526 ▼1917.70 ▼5.49620.54 ▼14.6148.94 ▼4.09
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.0498.04 ▼16.7146.39 ▲0.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_option_whitelist is deprecated since version 5.5.0! Use add_allowed_options() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: dismiss-gutenberg-nag, dismiss-gutenberg-widget, gutenberg, dismiss-dashboard-widget, luciano-croce

dismiss-gutenberg-nag/dismiss-gutenberg-nag.php Passed 13 tests

The main PHP file in "Dismiss Gutenberg Nag" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Dismiss "try Gutenberg" nag, dashboard widget, and demo menu, when it is activated, or if it is in mu-plugins directory.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin536 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP194379536

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin