Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Compile error in wp-content/plugins/ls-snacktools/snacktools.php+84
Cannot use $this as parameter
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.13ms] Passed 4 tests
A check of server-side resources used by LS Snacktools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.20 ▼0.73 |
Dashboard /wp-admin | 3.31 ▲0.00 | 58.43 ▲5.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.87 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.39 ▼8.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.98 ▼0.40 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LS Snacktools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.35 | 1.79 ▼0.18 | 42.93 ▲2.76 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.25 | 114.90 ▲4.18 | 42.64 ▲3.23 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.00 ▲0.00 | 37.60 ▼2.95 | 31.70 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,520 ▼2 | 23.06 ▼0.10 | 667.88 ▼24.86 | 53.09 ▼6.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.05 | 95.32 ▼22.08 | 44.06 ▼4.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- 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
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Cannot use $this as parameter in wp-content/plugins/ls-snacktools/snacktools.php on line 84
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add images for these screenshots: #1 (Paste of a simple url in post), #2 (The resulted embed slide from slidesnack.com into the post.)
ls-snacktools/snacktools.php 77% from 13 tests
Analyzing the main PHP file in "LS Snacktools" version 1.2
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WordPress 4.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("ls-snacktools.php" instead of "snacktools.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 plugin103 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 24 | 61 |
PO File | 2 | 6 | 10 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.50MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 42.10KB | 17.86KB | ▼ 57.58% |
screenshot-2.png | 469.90KB | 166.86KB | ▼ 64.49% |