10% bmail

Code Review | Bmail

WordPress plugin Bmail scored10%from 54 tests.

About plugin

  • Plugin page: bmail
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7
  • WordPress version: 6.3.1
  • First release: Mar 25, 2014
  • Latest release: Mar 27, 2014
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: bferrara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,134 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'Bmail_install' not found or invalid function name

Server metrics [RAM: ▼0.16MB] [CPU: ▼22.59ms] Passed 4 tests

This is a short check of server-side resources used by Bmail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.26 ▲2.63
Dashboard /wp-admin3.17 ▼0.1831.31 ▼32.55
Posts /wp-admin/edit.php3.30 ▼0.0637.01 ▼17.07
Add New Post /wp-admin/post-new.php5.50 ▼0.4080.00 ▼30.32
Media Library /wp-admin/upload.php3.23 ▲0.0024.52 ▼10.41
Bmail /wp-admin/options-general.php?page=Bmail3.1532.61

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
wp_Bmail_hotkeys
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
Bmail_db_version
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bmail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.68 ▲0.071.68 ▼0.5943.23 ▲3.69
Dashboard /wp-admin2,211 ▲376.36 ▲0.78108.98 ▲18.0340.28 ▼1.48
Posts /wp-admin/edit.php2,264 ▲1673.09 ▲1.0958.33 ▲23.8835.12 ▼2.78
Add New Post /wp-admin/post-new.php1,537 ▲823.19 ▼0.26615.05 ▲0.0555.67 ▲4.37
Media Library /wp-admin/upload.php1,568 ▲1714.99 ▲0.77119.97 ▲21.1046.59 ▲5.26
Bmail /wp-admin/options-general.php?page=Bmail1,5306.73131.0388.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_Bmail_hotkeys
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • Bmail_db_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Bmail
    • > User deprecated in wp-includes/functions.php+5453
    Function wp_tiny_mce is deprecated since version 3.3.0! Use wp_editor() instead.

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bmail/Bmail.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

bmail/Bmail.php 92% from 13 tests

Analyzing the main PHP file in "Bmail" version 1.1
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bmail.php" instead of "Bmail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin293 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16930293

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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 images were found in this plugin