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.00MB] [CPU: ▼6.60ms] Passed 4 tests
An overview of server-side resources used by Ninja Beaver Add-ons for Beaver Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.49 ▲2.81 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.65 ▼8.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.20 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.33 ▼16.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.99 ▲3.04 |
Server storage [IO: ▲2.98MB] [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: 333 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Beaver Add-ons for Beaver Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.34 ▲0.05 | 1.75 ▼0.58 | 43.26 ▼3.05 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▲0.04 | 84.84 ▼12.71 | 40.14 ▼4.83 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.01 ▼0.01 | 34.23 ▼5.12 | 33.43 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.91 ▼0.48 | 678.72 ▲25.94 | 48.94 ▼10.82 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.29 ▲0.07 | 98.81 ▼9.12 | 47.12 ▲4.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 42× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-twitter-tweet/includes/frontend.js.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-flip-box/includes/frontend.js.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-button/includes/frontend.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-gallery/includes/frontend.js.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-facebook-embed/includes/frontend.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-img-separator/includes/frontend.js.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-quote-box/includes/frontend.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-accordion/includes/frontend.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-twitter-timeline/includes/frontend.php
- > /wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-tabs/includes/frontend.js.php
- 1307× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: total_box_content in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-price-box/includes/layout_3.php on line 2
- > PHP Notice
Undefined property: stdClass::$btn_hover_border_color in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-contact-form/includes/frontend.css.php on line 41
- > PHP Notice
Undefined property: stdClass::$img_icon_bg_color_opc in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-icon-img/includes/frontend.css.php on line 29
- > PHP Notice
Trying to get property 'quotebox_layout' of non-object in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-quote-box/includes/frontend.php on line 4
- > PHP Notice
Undefined variable: settings in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-spacer/includes/frontend.css.php on line 6
- > PHP Notice
Undefined variable: settings in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-image-panels/includes/frontend.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-alert-box/includes/frontend.css.php on line 21
- > PHP Notice
Undefined variable: settings in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-testimonials/includes/frontend.css.php on line 43
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-alert-box/includes/frontend.css.php on line 22
- > PHP Notice
Undefined variable: settings in wp-content/plugins/ninja-beaver-lite-addons-for-beaver-builder/modules/njba-img-separator/includes/frontend.css.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: beaver builder free, beaver addons, beaver builder add ons, beaver builder addon, ninja beaver addon...
ninja-beaver-lite-addons-for-beaver-builder/bb-njba-lite.php 85% from 13 tests
The main PHP file in "Ninja Beaver Add-ons for Beaver Builder" ver. 2.4.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("ninja-beaver-lite-addons-for-beaver-builder.php" instead of "bb-njba-lite.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
Success! There were no dangerous files found in this plugin51,061 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 178 | 1,692 | 1,753 | 40,114 |
CSS | 45 | 1,065 | 101 | 5,619 |
JavaScript | 24 | 124 | 970 | 3,163 |
PO File | 1 | 1,033 | 4,231 | 2,081 |
SVG | 12 | 0 | 0 | 84 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 9.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 62 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 257 | |
▷ Static methods | 12 | 4.67% |
▷ Public methods | 222 | 86.38% |
▷ Protected methods | 32 | 12.45% |
▷ Private methods | 3 | 1.17% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
25 PNG files occupy 0.12MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/admin/purchase/icons/njba-timeline-icon.png | 5.49KB | 0.38KB | ▼ 93.07% |
classes/admin/purchase/icons/njba-polaroid-options-icon.png | 7.53KB | 0.51KB | ▼ 93.28% |
classes/admin/purchase/icons/njba-advanced-tabs-icon.png | 6.11KB | 0.97KB | ▼ 84.11% |
classes/admin/purchase/icons/njba-static-map-icon.png | 3.08KB | 0.30KB | ▼ 90.21% |
classes/admin/purchase/icons/njba-column-separator-icon.png | 5.05KB | 0.35KB | ▼ 93.08% |