78% bloom-for-publishers

Code Review | Bloom for Publishers

WordPress plugin Bloom for Publishers scored78%from 54 tests.

About plugin

  • Plugin page: bloom-for-publishers
  • Plugin version: 1.7.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2016
  • Latest release: Oct 5, 2023
  • Number of updates: 189
  • Update frequency: every 14.4 days
  • Top authors: bloomfornews (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /20,646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼4.79ms] Passed 4 tests

An overview of server-side resources used by Bloom for Publishers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3140.76 ▲1.23
Dashboard /wp-admin3.60 ▲0.2549.49 ▼14.36
Posts /wp-admin/edit.php3.72 ▲0.3656.51 ▲8.95
Add New Post /wp-admin/post-new.php6.20 ▲0.3090.26 ▼14.98
Media Library /wp-admin/upload.php3.55 ▲0.3149.52 ▲13.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bloom for Publishers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲10013.47 ▼0.747.81 ▲6.0436.15 ▼1.90
Dashboard /wp-admin2,217 ▲375.61 ▲0.0489.08 ▲2.5276.88 ▲35.26
Posts /wp-admin/edit.php2,136 ▲362.09 ▲0.0738.80 ▲5.6437.54 ▲3.40
Add New Post /wp-admin/post-new.php1,699 ▲17322.22 ▼0.88763.73 ▲88.6259.54 ▲10.48
Media Library /wp-admin/upload.php1,425 ▲254.24 ▲0.0692.87 ▼3.1377.32 ▲33.52

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bloom-for-publishers/admin/info-geotagging.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bloom-for-publishers/post/post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bloom-for-publishers/bloom.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bloom-for-publishers/admin/info-shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function blm_lib_get_version() in wp-content/plugins/bloom-for-publishers/search/search.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bloom-for-publishers/admin/admin-settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bloom-for-publishers/admin/admin-post.php:3

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 is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

bloom-for-publishers/bloom.php 92% from 13 tests

Analyzing the main PHP file in "Bloom for Publishers" version 1.7.8
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bloom-for-publishers.php" instead of "bloom.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,665 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS6406232,606
PHP84433791,859
JavaScript65554861,791
SVG1041,409

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions43
▷ Named functions4297.67%
▷ Anonymous functions12.33%
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/state-ny.png9.71KB4.97KB▼ 48.83%