Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.55ms] Passed 4 tests
Server-side resources used by Snap Pixel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.08 ▼6.39 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.12 ▲0.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.06 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 84.02 ▼4.50 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.14 ▲5.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Snap Pixel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲190 | 14.01 ▼0.36 | 5.17 ▲3.04 | 41.37 ▼10.11 |
Dashboard /wp-admin | 2,247 ▲59 | 4.97 ▼0.91 | 101.65 ▼19.71 | 80.11 ▲37.41 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.03 ▲0.01 | 40.01 ▲4.53 | 37.73 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 23.22 ▲4.79 | 687.07 ▲7.35 | 58.34 ▲2.21 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.18 ▼0.04 | 102.63 ▲2.44 | 64.58 ▲22.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/snap-pixel/admin/setting-tabs.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/snap-pixel/admin/snapchat_pixel_backend.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snap-pixel/snapchat-pixel.php:257
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/snap-pixel/admin/snapchat_pixel_place_code.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Snap Pixel ID), #2 (Snap Pixel Settings), #3 (Snap Pixel WooCommerce Settings)
snap-pixel/snapchat-pixel.php 77% from 13 tests
The primary PHP file in "Snap Pixel" version 1.5.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: The description should be shorter than 140 characters (currently 176 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("snap-pixel.php" instead of "snapchat-pixel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin851 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 97 | 70 | 643 |
CSS | 2 | 12 | 0 | 181 |
JavaScript | 2 | 3 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/snapchat-pixel.png | 3.70KB | 1.04KB | ▼ 71.86% |
assets/images/snapchat.png | 3.40KB | 0.68KB | ▼ 79.91% |