Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.74ms] Passed 4 tests
A check of server-side resources used by Smartarget Button Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 40.11 ▲4.26 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.69 ▲0.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.70 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.47 ▼8.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.43 ▲8.23 |
Smartarget Button Builder /wp-admin/options-general.php?page=smartarget_button_builder | 3.24 | 35.02 |
Server storage [IO: ▲3.69MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Smartarget Button Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲172 | 21.19 ▲6.69 | 9.00 ▲7.06 | 43.50 ▼4.43 |
Dashboard /wp-admin | 2,210 ▲22 | 10.97 ▲6.00 | 194.42 ▲81.79 | 41.84 ▼2.47 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 7.28 ▲5.28 | 110.07 ▲68.61 | 32.25 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,682 ▲140 | 28.14 ▲9.98 | 662.81 ▲59.59 | 63.43 ▲0.87 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 9.64 ▲5.36 | 189.62 ▲90.78 | 44.92 ▲2.26 |
Smartarget Button Builder /wp-admin/options-general.php?page=smartarget_button_builder | 4,098 | 7.60 | 219.49 | 285.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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 everything seems fine, this is not 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartarget-button-builder/public/partials/smartarget-button-builder-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-button-builder/admin/partials/smartarget-button-builder-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: action, support, smartarget, contact, sale...
smartarget-button-builder/smartarget-button-builder.php 92% from 13 tests
The main PHP script in "Smartarget Button Builder" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin861 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,362 | 635 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin