90% wp-notice-blocker

Code Review | WP Notice Blocker

WordPress plugin WP Notice Blocker scored 90% from 54 tests.

About plugin

  • Plugin page: wp-notice-blocker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.8.1
  • First release: Mar 6, 2020
  • Latest release: Mar 6, 2020
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: Hasinur Rahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 826 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.01MB] [CPU: ▼137.91ms] Passed 4 tests

A check of server-side resources used by WP Notice Blocker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.73 ▲14.70
Dashboard /wp-admin3.07 ▲0.0250.03 ▲1.63
Posts /wp-admin/edit.php3.12 ▲0.0145.57 ▼3.06
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.36 ▼555.52
Media Library /wp-admin/upload.php3.02 ▲0.0139.20 ▲5.31

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
wp_notice_blocker_version

Browser metrics Passed 4 tests

Checking browser requirements for WP Notice Blocker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,822 ▲22616.50 ▲0.9211.90 ▲2.0148.25 ▼4.65
Dashboard /wp-admin2,954 ▲235.90 ▼0.09141.69 ▼8.66120.52 ▼1.57
Posts /wp-admin/edit.php2,728 ▼112.69 ▼0.0184.53 ▲10.29101.59 ▲1.72
Add New Post /wp-admin/post-new.php1,607 ▲10921.46 ▲2.58311.86 ▼90.48124.12 ▲11.55
Media Library /wp-admin/upload.php1,794 ▼135.10 ▲0.09152.68 ▼15.34122.95 ▼4.74

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • wp_notice_blocker_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: comments, spam

wp-notice-blocker/wp-notice-blocker.php 92% from 13 tests

The main PHP file in "WP Notice Blocker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin85 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13112754
JSON10025
Markdown1206

PHP code Passed 2 tests

This is a short overview 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.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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