89% wp-alerts-bars

Code Review | = WP Alerts Bars

WordPress plugin = WP Alerts Bars scored89%from 54 tests.

About plugin

  • Plugin page: wp-alerts-bars
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: shuvo66 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by = WP Alerts Bars
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.00 ▼3.31
Dashboard /wp-admin3.31 ▲0.0044.17 ▼2.58
Posts /wp-admin/edit.php3.36 ▲0.0044.15 ▼7.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.43 ▲1.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲3.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for = WP Alerts Bars
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.25 ▼1.121.64 ▼0.2446.83 ▲2.87
Dashboard /wp-admin2,203 ▲184.85 ▼1.01100.78 ▼13.9941.92 ▼1.32
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0133.29 ▼3.0833.53 ▲1.76
Add New Post /wp-admin/post-new.php1,542 ▲918.35 ▼4.76604.30 ▼83.5751.57 ▼2.83
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0694.07 ▼12.1441.52 ▼4.78

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: alert, shuvo66, notice boxes, alert notice box

wp-alerts-bars/wp_alerts_bar.php 69% from 13 tests

"= WP Alerts Bars" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-alerts-bars.php" instead of "wp_alerts_bar.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111718
CSS1061

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected