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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.90 ▼2.19 |
Dashboard /wp-admin | 3.03 ▼0.27 | 27.09 ▼18.75 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 24.96 ▼16.09 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 24.55 ▼65.74 |
Media Library /wp-admin/upload.php | 3.03 ▼0.19 | 59.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲54 | 13.27 ▼1.46 | 4.42 ▲2.61 | 36.96 ▼9.34 |
Dashboard /wp-admin | 2,222 ▲16 | 4.83 ▼0.05 | 107.28 ▼2.79 | 36.94 ▼4.36 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▼0.02 | 40.24 ▲7.51 | 37.04 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,561 ▲19 | 18.38 ▲0.04 | 617.56 ▲21.26 | 63.73 ▲9.08 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.22 ▲0.02 | 120.69 ▲9.60 | 48.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 131 | 111 | 2,377 |
CSS | 2 | 5 | 0 | 164 |
JavaScript | 3 | 2 | 0 | 102 |
XSLT | 2 | 0 | 0 | 66 |
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 code | 0.60 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 42 | 93.33% |
▷ Anonymous functions | 3 | 6.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/banner-772x250.png | 18.21KB | 6.57KB | ▼ 63.91% |
assests/screenshot-1.png | 124.36KB | 55.60KB | ▼ 55.29% |
assests/screenshot-4.png | 58.25KB | 24.02KB | ▼ 58.76% |
assests/banner-772x250-rtl.png | 18.21KB | 6.57KB | ▼ 63.93% |
assests/screenshot-5.png | 49.34KB | 21.12KB | ▼ 57.20% |