84% contacts-bmlt

Code Review | Contacts BMLT

WordPress plugin Contacts BMLT scored84%from 54 tests.

About plugin

  • Plugin page: contacts-bmlt
  • Plugin version: 1.3.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 25, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 19
  • Update frequency: every 75.0 days
  • Top authors: pjaudiomv (63.16%)bmltenabled (42.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,067 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.08MB] [CPU: ▼0.61ms] Passed 4 tests

Analyzing server-side resources used by Contacts BMLT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.61 ▲1.80
Dashboard /wp-admin3.41 ▲0.1152.08 ▲1.85
Posts /wp-admin/edit.php3.52 ▲0.1746.59 ▲1.14
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.99 ▼5.83
Media Library /wp-admin/upload.php3.33 ▲0.1034.96 ▲0.47
Contacts BMLT /wp-admin/options-general.php?page=contacts-bmlt3.3131.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
contacts_bmlt_options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Contacts BMLT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5414.39 ▼0.342.00 ▼0.1643.37 ▲1.21
Dashboard /wp-admin2,208 ▲285.72 ▲0.1393.89 ▼2.8742.42 ▼2.11
Posts /wp-admin/edit.php2,110 ▲132.03 ▲0.0433.37 ▼7.0136.50 ▲2.64
Add New Post /wp-admin/post-new.php1,540 ▲1223.19 ▼0.05673.06 ▼2.2455.83 ▲4.41
Media Library /wp-admin/upload.php1,413 ▲134.19 ▼0.0095.89 ▼3.8742.54 ▲0.47
Contacts BMLT /wp-admin/options-general.php?page=contacts-bmlt1,3332.4241.3449.31

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • contacts_bmlt_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/contacts-bmlt/src/partials/_instructions.php
    • > /wp-content/plugins/contacts-bmlt/contacts-bmlt.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

contacts-bmlt/contacts-bmlt.php 92% from 13 tests

The main file in "Contacts BMLT" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,304 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS556831,569
PHP690460714
JavaScript20112
Markdown1809

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.00
▷ Minimum class complexity4.00
▷ Maximum class complexity32.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods2458.54%
▷ Protected methods00.00%
▷ Private methods1741.46%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png0.33KB0.16KB▼ 53.08%
css/redmond/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.29KB0.10KB▼ 65.41%
css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png0.33KB0.13KB▼ 60.36%