Benchmarks
Plugin footprint 65% 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: ▼1.71MB] [CPU: ▼0.37ms] 75% from 4 tests
An overview of server-side resources used by Snap Marketing
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 523.59ms on /wp-admin/post-new.php?post_type=snap_treatments)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 8.08 ▼31.98 |
Dashboard /wp-admin | 2.34 ▼0.97 | 73.77 ▲27.01 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 68.15 ▲21.97 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 73.34 ▼18.49 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 74.87 ▲40.90 |
Configuration /wp-admin/edit.php?post_type=snap_treatments&page=snap-marketing-configuration | 2.34 | 73.88 |
All Treatments /wp-admin/edit.php?post_type=snap_treatments | 2.34 | 111.71 |
Add New /wp-admin/post-new.php?post_type=snap_treatments | 2.34 | 523.59 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
Snap_Product_Active |
widget_theysaidso_widget |
widget_recent-comments |
default_snap_treatments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Snap Marketing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.71 ▼0.65 | 8.97 ▲7.36 | 68.98 ▲32.11 |
Dashboard /wp-admin | 2,229 ▲48 | 5.57 ▼0.14 | 80.22 ▼17.94 | 38.97 ▼8.48 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.06 | 36.58 ▲0.70 | 34.59 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.66 ▲0.59 | 670.11 ▲53.82 | 53.10 ▼3.64 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.18 ▼0.01 | 95.71 ▼2.64 | 43.39 ▼3.68 |
Configuration /wp-admin/edit.php?post_type=snap_treatments&page=snap-marketing-configuration | 952 | 2.07 | 25.61 | 29.12 |
All Treatments /wp-admin/edit.php?post_type=snap_treatments | 1,810 | 2.02 | 36.13 | 35.13 |
Add New /wp-admin/post-new.php?post_type=snap_treatments | 1,600 | 2.60 | 52.15 | 64.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 4: parser error : Opening and ending tag mismatch: META line 2 and HEAD
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- Snap_Product_Active
- default_snap_treatments
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 4: parser error : Opening and ending tag mismatch: META line 2 and HEAD
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): </HEAD><BODY>
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): ^
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 7: parser error : Specification mandates value for attribute noshade
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): <HR noshade size="1px">
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): ^
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 7: parser error : attributes construct error
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 7: parser error : Couldn't find end of Start Tag HR line 7
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 13: parser error : Specification mandates value for attribute noshade
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 13: parser error : attributes construct error
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 13: parser error : Couldn't find end of Start Tag HR line 13
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 20: parser error : Opening and ending tag mismatch: BR line 2 and BODY
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): </BODY></HTML>
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 20: parser error : Opening and ending tag mismatch: BR line 2 and HTML
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): ^
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Warning in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php+265
simplexml_load_string(): Entity: line 20: parser error : EndTag: '</' not found
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=snap_treatments
- > Notice in wp-includes/plugin.php+1004
Undefined offset: 0
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php:262
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_price_thousand_separator() in wp-content/plugins/snap-marketing/inc/snap-pre-qualification-as-low-as.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_price_thousand_separator() in wp-content/plugins/snap-marketing/inc/snap-get-approved-as-low-as.php:2
- > PHP Warning
constant(): Couldn't find constant Snap_Marketing_Logo_URL in wp-content/plugins/snap-marketing/snap-marketing-admin-side.php on line 261
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/snap-marketing/inc/snap-pre-qualification.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/snap-marketing/snap-marketing-front-side.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/snap-marketing/inc/snap-pre-approval.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/snap-marketing/inc/snap-banner.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=snap_treatments
- > Network (severe)
https://snap-assets.snapfinance.com/en/us/marketing/aslowas/Dark.svg - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/edit.php?post_type=snap_treatments
- > Network (severe)
https://snap-assets.snapfinance.com/en/us/marketing/getapproved/Dark.svg - Failed to load resource: the server responded with a status of 403 ()
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:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in snap-marketing/assets to your readme.txt
snap-marketing/snap-marketing.php 92% from 13 tests
The entry point to "Snap Marketing" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,723 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 119 | 134 | 1,091 |
CSS | 2 | 5 | 0 | 314 |
JavaScript | 2 | 16 | 20 | 195 |
Markdown | 1 | 28 | 0 | 91 |
SVG | 2 | 0 | 1 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 48.50 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 1.63MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 249.37KB | 91.09KB | ▼ 63.47% |
assets/images/screenshot-1.png | 25.86KB | 9.35KB | ▼ 63.86% |
assets/images/close_24px.png | 0.29KB | 0.23KB | ▼ 20.88% |
assets/images/lock_24px.png | 0.33KB | 0.26KB | ▼ 20.90% |
assets/images/screenshot-6.png | 208.90KB | 84.80KB | ▼ 59.41% |