Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+66
Undefined variable: dilemma_db_version
Server metrics [RAM: ▼0.63MB] [CPU: ▼15.64ms] 75% from 4 tests
This is a short check of server-side resources used by Dilemma Lite
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,934.64ms on /wp-admin/admin.php?page=dilemma-plugin-config)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.36 ▼3.14 |
Dashboard /wp-admin | 3.37 ▲0.07 | 53.84 ▲3.38 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 54.02 ▲0.17 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 35.71 ▼62.48 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.75 ▲2.89 |
Dilemmas /wp-admin/edit.php?post_type=dilemma | 3.34 | 37.16 |
Dilemma Tags /wp-admin/edit-tags.php?taxonomy=dilemma-tags&post_type=dilemma | 3.29 | 35.07 |
Settings /wp-admin/admin.php?page=dilemma-plugin-settings | 3.26 | 30.99 |
Dilemma Categories /wp-admin/edit-tags.php?taxonomy=dilemma-cats&post_type=dilemma | 3.29 | 30.31 |
Dilemma /wp-admin/admin.php?page=dilemma-plugin-config | 3.37 | 1,934.64 |
Manually Add Dilemma /wp-admin/post-new.php?post_type=dilemma | 3.16 | 41.44 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_dil_ip |
New WordPress options |
---|
dilemma_db_version |
widget_theysaidso_widget |
dilIP |
widget_recent-comments |
dil_aff |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
dil_love |
ds |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Dilemma Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲247 | 13.57 ▼0.71 | 8.71 ▲6.88 | 42.43 ▼1.46 |
Dashboard /wp-admin | 2,252 ▲75 | 5.71 ▲0.08 | 89.21 ▲0.24 | 77.79 ▲40.30 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.33 ▲0.34 | 49.13 ▲8.52 | 35.56 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,585 ▲59 | 23.03 ▼0.26 | 636.07 ▼39.83 | 36.88 ▼19.86 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.44 ▲0.23 | 109.92 ▲2.28 | 66.70 ▲16.37 |
Dilemmas /wp-admin/edit.php?post_type=dilemma | 1,275 | 2.28 | 43.06 | 33.53 |
Dilemma Tags /wp-admin/edit-tags.php?taxonomy=dilemma-tags&post_type=dilemma | 1,329 | 1.90 | 30.77 | 32.72 |
Settings /wp-admin/admin.php?page=dilemma-plugin-settings | 1,002 | 2.98 | 69.47 | 33.40 |
Dilemma Categories /wp-admin/edit-tags.php?taxonomy=dilemma-cats&post_type=dilemma | 1,363 | 2.05 | 33.23 | 28.84 |
Dilemma /wp-admin/admin.php?page=dilemma-plugin-config | 1,140 | 2.99 | 74.00 | 41.16 |
Manually Add Dilemma /wp-admin/post-new.php?post_type=dilemma | 2,190 | 3.12 | 70.64 | 67.42 |
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
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_dil_ip
- The uninstall procedure has failed, leaving 12 options in the database
- dilIP
- can_compress_scripts
- dil_db_version
- ds
- db_upgraded
- dil_aff
- diltimer
- widget_recent-comments
- widget_theysaidso_widget
- dil_love
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=dilemma-plugin-config
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+556
Undefined variable: maxitems
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1575
Undefined index: dilA
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1576
Undefined index: dilB
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1577
Undefined index: winA
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1578
Undefined index: winB
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1579
Undefined index: image_location1
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1580
Undefined index: image_location2
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1584
Undefined index: cleft
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Notice in wp-content/plugins/dilemma-lite/Dilemma.php+1585
Undefined index: cright
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dilemma-lite/Dilemma.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=dilemma
- > Network (severe)
wp-content/plugins/dilemma-lite/i/ae-bg-400t.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=dilemma-plugin-config
- > Network (severe)
wp-content/plugins/dilemma-lite/i/wpeddit-thumb.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: you rather, yes, dilemma, yourrather, no
dilemma-lite/Dilemma.php 85% from 13 tests
"Dilemma Lite" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dilemma-lite.php" instead of "Dilemma.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
There were no executable files found in this plugin2,830 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 447 | 79 | 1,230 |
CSS | 4 | 93 | 43 | 951 |
JavaScript | 6 | 92 | 115 | 341 |
HTML | 1 | 14 | 4 | 186 |
PO File | 1 | 47 | 101 | 122 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 34 | |
▷ Named functions | 34 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.53MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/image_6.png | 21.42KB | 6.53KB | ▼ 69.53% |
documentation/assets/images/image_2.png | 71.04KB | 19.31KB | ▼ 72.82% |
documentation/assets/images/image_5.png | 21.09KB | 6.55KB | ▼ 68.94% |
i/dilemmalogo.png | 3.17KB | 2.16KB | ▼ 31.89% |
i/fbshare.png | 2.91KB | 2.11KB | ▼ 27.45% |