Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.71MB] [CPU: ▲9.67ms] Passed 4 tests
A check of server-side resources used by Brave - Create Popup, Optins, Lead Generation, Survey, Sticky Elements & Interactive Content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.22 ▲2.75 | 53.73 ▲15.81 |
Dashboard /wp-admin | 6.04 ▲2.70 | 62.44 ▲3.95 |
Posts /wp-admin/edit.php | 6.09 ▲2.73 | 70.06 ▲17.65 |
Add New Post /wp-admin/post-new.php | 8.71 ▲2.82 | 104.58 ▲1.28 |
Media Library /wp-admin/upload.php | 5.91 ▲2.67 | 54.99 ▲20.35 |
Settings /wp-admin/admin.php?page=bravepop-settings | 5.92 | 53.79 |
Server storage [IO: ▲5.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Brave - Create Popup, Optins, Lead Generation, Survey, Sticky Elements & Interactive Content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲99 | 14.39 ▼0.27 | 3.12 ▲1.32 | 37.30 ▲0.52 |
Dashboard /wp-admin | 2,254 ▲87 | 5.57 ▼0.06 | 93.98 ▼12.40 | 40.77 ▲0.11 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 1.98 ▲0.04 | 37.56 ▼3.52 | 33.50 ▼6.29 |
Add New Post /wp-admin/post-new.php | 1,557 ▲32 | 23.23 ▼0.42 | 692.33 ▲69.90 | 57.02 ▲6.09 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.22 ▼0.00 | 101.80 ▼2.02 | 43.81 ▼1.46 |
Settings /wp-admin/admin.php?page=bravepop-settings | 1,096 | 5.86 | 180.81 | 31.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/brave-popup-builder/lib/helpers/helpers.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/render.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/helpers/forms.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/enqueue-scripts.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/rest/helpers/integrations.php:287
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/helpers/metabox.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/rest/helpers/integrations.php:287
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/helpers/stats.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/integration/Uncanny/Uncanny.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brave-popup-builder/lib/post-type_popup.php:3
- > 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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: optin, woocommerce popup, wordpress popup, popups, modal...
brave-popup-builder/index.php 85% from 13 tests
The primary PHP file in "Brave - Create Popup, Optins, Lead Generation, Survey, Sticky Elements & Interactive Content" version 0.6.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("brave-popup-builder.php" instead of "index.php")
- 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
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected15,062 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,951 | 688 | 9,873 |
CSS | 6 | 1,459 | 19 | 3,156 |
JavaScript | 5 | 277 | 160 | 2,004 |
XML | 1 | 0 | 0 | 27 |
JSON | 2 | 1 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 126)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.86 |
Average class complexity | 69.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 676.00 |
Average method complexity | 13.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 126.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 47 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 261 | |
▷ Static methods | 14 | 5.36% |
▷ Public methods | 237 | 90.80% |
▷ Protected methods | 22 | 8.43% |
▷ Private methods | 2 | 0.77% |
Functions | 81 | |
▷ Named functions | 80 | 98.77% |
▷ Anonymous functions | 1 | 1.23% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
47 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fflags.png | 30.79KB | 29.10KB | ▼ 5.48% |
assets/images/logos/convertkit.png | 8.77KB | 3.93KB | ▼ 55.24% |
assets/images/uncanny/integration-brave-icon-64.png | 0.91KB | 0.92KB | 0.00% |
assets/images/logos/moosend.png | 3.93KB | 4.03KB | 0.00% |
assets/images/posts_layout2.png | 0.41KB | 0.40KB | ▼ 1.44% |