89% wp-notice-bar

Code Review | Notice

WordPress plugin Notice scored89%from 54 tests.

About plugin

  • Plugin page: wp-notice-bar
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 20, 2017
  • Latest release: Jul 22, 2017
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: imaginarymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Notice
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.11 ▼4.02
Dashboard /wp-admin3.34 ▲0.0445.84 ▼6.70
Posts /wp-admin/edit.php3.39 ▲0.0347.20 ▼0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.46 ▼12.98
Media Library /wp-admin/upload.php3.26 ▲0.0338.11 ▲5.23
Site Notice /wp-admin/options-general.php?page=jmr_notice3.2330.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Notice: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.62 ▼0.774.21 ▲2.1640.47 ▼2.66
Dashboard /wp-admin2,210 ▲225.88 ▲1.04103.63 ▼8.6937.81 ▼8.85
Posts /wp-admin/edit.php2,093 ▲252.00 ▼0.0634.40 ▲1.0432.17 ▼2.43
Add New Post /wp-admin/post-new.php1,536 ▲1723.46 ▲0.04664.75 ▲58.0862.80 ▲16.69
Media Library /wp-admin/upload.php1,386 ▼24.10 ▼0.14103.74 ▲5.2245.16 ▲0.73
Site Notice /wp-admin/options-general.php?page=jmr_notice1,0462.0622.2029.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-notice-bar === )
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "Notice" version 0.1.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-notice-bar.php" instead of "notice.php")

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
There were no executable files found in this plugin186 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16531186

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin