73% local-business-booster

Code Review | Local Business Booster

WordPress plugin Local Business Booster scored 73% from 54 tests.

About plugin

  • Plugin page: local-business-bo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Mar 2, 2019
  • Number of updates: 7
  • Update frequency: every 4.4 days
  • Top authors: second2none (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 642 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼25.69ms] Passed 4 tests

This is a short check of server-side resources used by Local Business Booster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.90 ▼2.19
Dashboard /wp-admin3.03 ▼0.2727.09 ▼18.75
Posts /wp-admin/edit.php3.03 ▼0.3224.96 ▼16.09
Add New Post /wp-admin/post-new.php3.03 ▼2.8524.55 ▼65.74
Media Library /wp-admin/upload.php3.03 ▼0.1959.58 ▲26.25

Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification found: 5 files (1.53KB) outside of "wp-content/plugins/local-business-booster/" and "wp-content/uploads/"
    • (new file) lbb_category_sitemap.php
    • (new file) lbb_pages_sitemap.php
    • (new file) lbb_sitemap.php
    • (new file) lbb_tags_sitemap.php
    • (new file) lbb_posts_sitemap.php
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
lbb_sitemaps_details
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Local Business Booster
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲5413.27 ▼1.464.42 ▲2.6136.96 ▼9.34
Dashboard /wp-admin2,222 ▲164.83 ▼0.05107.28 ▼2.7936.94 ▼4.36
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0240.24 ▲7.5137.04 ▲2.06
Add New Post /wp-admin/post-new.php1,561 ▲1918.38 ▲0.04617.56 ▲21.2663.73 ▲9.08
Media Library /wp-admin/upload.php1,401 ▲134.22 ▲0.02120.69 ▲9.6048.70 ▲1.46

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/local-business-booster/options.php+107
    Undefined index: wpfeaturesShortcodes
  • This plugin does not fully uninstall, leaving 7 options in the database
    • lbb_sitemaps_details
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/local-business-booster/php_libraries/lbb_blankpage.php:2

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

local-business-booster/lbb.php 92% from 13 tests

Analyzing the main PHP file in "Local Business Booster" version 1.0.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("local-business-booster.php" instead of "lbb.php")

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 detected2,709 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP71311112,377
CSS250164
JavaScript320102
XSLT20066

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity35.33
▷ Minimum class complexity22.00
▷ Maximum class complexity58.00
Average method complexity5.29
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions4293.33%
▷ Anonymous functions36.67%
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
10 PNG files occupy 0.37MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assests/banner-772x250.png18.21KB6.57KB▼ 63.91%
assests/screenshot-1.png124.36KB55.60KB▼ 55.29%
assests/screenshot-4.png58.25KB24.02KB▼ 58.76%
assests/banner-772x250-rtl.png18.21KB6.57KB▼ 63.93%
assests/screenshot-5.png49.34KB21.12KB▼ 57.20%