Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method MyPreferences_PRLS::activate() should not be called statically
Server metrics [RAM: ▲0.10MB] [CPU: ▼143.16ms] Passed 4 tests
A check of server-side resources used by My Preferences
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.26 | 44.67 ▲15.62 |
Dashboard /wp-admin | 3.15 ▲0.09 | 43.22 ▲0.21 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 45.54 ▼4.88 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 96.16 ▼568.34 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 34.83 ▲0.38 |
Import Items /wp-admin/admin.php?page=myprefs-settings-import | 3.06 | 30.46 |
My Preferences /wp-admin/admin.php?page=myprefs-settings | 3.06 | 29.66 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: 3 new tables, 1 new option
New tables |
---|
oo_item_preftypes |
oo_items |
oo_preferences |
New WordPress options |
---|
myprefs_page_id |
Browser metrics Passed 4 tests
An overview of browser requirements for My Preferences
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲258 | 16.58 ▲0.90 | 22.00 ▲13.77 | 49.67 ▼4.29 |
Dashboard /wp-admin | 3,003 ▲72 | 5.89 ▼0.05 | 145.50 ▼6.17 | 123.44 ▲1.05 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▲0.01 | 70.12 ▲5.34 | 97.35 ▼10.65 |
Add New Post /wp-admin/post-new.php | 1,705 ▲111 | 18.50 ▼0.38 | 397.72 ▲6.08 | 113.56 ▼2.33 |
Media Library /wp-admin/upload.php | 1,782 ▼28 | 5.00 ▼0.04 | 169.41 ▲15.41 | 126.28 ▼4.23 |
Import Items /wp-admin/admin.php?page=myprefs-settings-import | 1,216 | 2.22 | 69.77 | 98.44 |
My Preferences /wp-admin/admin.php?page=myprefs-settings | 1,070 | 2.09 | 57.08 | 72.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- oo_preferences
- oo_items
- oo_item_preftypes
- Zombie WordPress options were found after uninstall: 1 option
- myprefs_page_id
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/my-preferences-woo/views/user-preferences.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The screenshot description corresponds to front-page.png), #2 (The screenshot description corresponds to import.png), #3 (The screenshot description corresponds to items_sheet.png), #4 (The screenshot description corresponds to setting.png)
- Contributors: The plugin contributors field is missing
my-preferences-woo/woocommerce-my-preferences.php 85% from 13 tests
The main PHP file in "My Preferences" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("my-preferences-woo.php" instead of "woocommerce-my-preferences.php")
- Description: The description should be shorter than 140 characters (currently 160 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
No dangerous file extensions were detected1,488 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 196 | 38 | 1,138 |
JavaScript | 1 | 67 | 56 | 349 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.34 |
Average class complexity | 13.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 73.08% |
▷ Protected methods | 21 | 26.92% |
▷ 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.31MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
import.png | 36.12KB | 13.52KB | ▼ 62.56% |
assets/img/cats_sheet.png | 45.97KB | 18.36KB | ▼ 60.07% |
front-page.png | 61.46KB | 20.61KB | ▼ 66.47% |
assets/img/items_txt.png | 20.54KB | 5.11KB | ▼ 75.14% |
assets/img/items_sheet.png | 47.50KB | 19.18KB | ▼ 59.63% |