Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/dadi-shal/share-from-post-list.php+336
Undefined index: post_type
Server metrics [RAM: ▼1.77MB] [CPU: ▼53.92ms] Passed 4 tests
This is a short check of server-side resources used by Dadi Shal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 5.54 ▼34.47 |
Dashboard /wp-admin | 2.23 ▼1.07 | 7.79 ▼43.62 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 7.34 ▼44.92 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 7.17 ▼92.68 |
Media Library /wp-admin/upload.php | 2.23 ▼0.99 | 5.76 ▼31.45 |
Dadi Shal /wp-admin/options-general.php?page=dadishal-options-page | 2.23 | 6.72 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 16 new options
New WordPress options |
---|
enable_googleplus |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
display_buttons_on_list_posts |
open_window |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
display_buttons_on_list_pages |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dadi Shal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 14.48 ▲0.19 | 1.79 ▼0.22 | 43.84 ▼0.68 |
Dashboard /wp-admin | 2,217 ▲29 | 5.84 ▲1.01 | 105.98 ▼6.53 | 40.96 ▼2.11 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.01 ▼0.02 | 35.59 ▼5.59 | 37.20 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.09 ▲4.81 | 671.45 ▲32.94 | 55.72 ▲0.07 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.24 ▲0.05 | 95.80 ▼13.31 | 43.65 ▼3.58 |
Dadi Shal /wp-admin/options-general.php?page=dadishal-options-page | 967 | 1.72 | 25.73 | 31.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dadi-shal/share-from-post-list.php+336
Undefined index: post_type
- Zombie WordPress options detected upon uninstall: 16 options
- enable_linkedin
- enable_googleplus
- widget_recent-posts
- theysaidso_admin_options
- enable_pinterest
- twitter_username
- enable_twitter
- open_window
- can_compress_scripts
- display_buttons_on_list_posts
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dadishal-options-page
- > Notice in wp-content/plugins/dadi-shal/share-from-post-list.php+446
Undefined index: post_type
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
There were not plugin tags detected
dadi-shal/share-from-post-list.php 92% from 13 tests
"Dadi Shal" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dadi-shal.php" instead of "share-from-post-list.php")
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 detected2,581 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 2 | 16 | 0 | 1,410 |
CSS | 2 | 10 | 12 | 563 |
PHP | 2 | 66 | 107 | 330 |
SVG | 1 | 1 | 0 | 177 |
PO File | 1 | 28 | 35 | 82 |
Markdown | 1 | 10 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
4 PNG files occupy 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 6.05KB | 2.86KB | ▼ 52.64% |
assets/screenshot-1.png | 259.13KB | 42.80KB | ▼ 83.48% |
assets/banner-772x250.png | 92.71KB | 12.62KB | ▼ 86.39% |
assets/icon-256x256.png | 8.12KB | 3.90KB | ▼ 51.96% |