94% blms

Code Review | Support #BlackLivesMatter

WordPress plugin Support #BlackLivesMatter scored 94% from 54 tests.

About plugin

  • Plugin page: blms
  • Plugin version: 1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7.1
  • WordPress version: 5.9.2
  • First release: Apr 29, 2021
  • Latest release: May 4, 2021
  • Number of updates: 6
  • Update frequency: every 47.8 days
  • Top authors: maximejobin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 264 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼302.68ms] Passed 4 tests

Analyzing server-side resources used by Support #BlackLivesMatter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0753.89 ▲6.83
Dashboard /wp-admin3.45 ▲0.0433.86 ▲1.36
Posts /wp-admin/edit.php3.68 ▲0.0435.16 ▲0.05
Add New Post /wp-admin/post-new.php6.95 ▼0.0495.85 ▼1,203.94
Media Library /wp-admin/upload.php3.33 ▲0.0322.79 ▼8.20
#BlackLivesMatter /wp-admin/options-general.php?page=blms_settings3.3024.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Support #BlackLivesMatter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4516.02 ▲0.018.40 ▲2.872.17 ▼0.87
Dashboard /wp-admin2,897 ▲366.12 ▼0.11121.08 ▼12.50158.36 ▼1.25
Posts /wp-admin/edit.php2,690 ▼43.24 ▼0.0162.65 ▼2.43142.06 ▲1.59
Add New Post /wp-admin/post-new.php1,664 ▼11516.46 ▼5.04406.24 ▼56.10144.74 ▼15.78
Media Library /wp-admin/upload.php1,703 ▲25.52 ▲0.04146.63 ▲5.78184.91 ▼8.01
#BlackLivesMatter /wp-admin/options-general.php?page=blms_settings1,0952.4454.36123.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blms/blms.php:49

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: blm, blmsupport, lives, blms, blacklivesmatter...

blms/blms.php Passed 13 tests

The primary PHP file in "Support #BlackLivesMatter" version 1.1 is used by WordPress to initiate all plugin functionality
129 characters long description:
Calls the Support BlackLivesMatter script to make your homepage colorless between May 23 to 25. See our website for more details.

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
Good job! No executable or dangerous file extensions detected118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12443118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin