Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▼1.93MB] [CPU: ▼57.50ms] Passed 4 tests
This is a short check of server-side resources used by memit.com Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.17 ▼33.77 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.36 ▼44.81 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.63 ▼51.12 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.26 ▼98.50 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.45 ▼35.55 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
memit.com Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.03 | 2.06 ▲0.43 | 44.93 ▲2.14 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.09 | 88.19 ▼3.68 | 38.90 ▼5.49 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.04 | 39.95 ▼2.06 | 35.48 ▼10.99 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.09 ▲0.10 | 627.36 ▼44.15 | 62.09 ▼0.84 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.01 | 103.42 ▼5.51 | 44.97 ▼0.51 |
memit.com Widget /wp-admin/skylark-memit-widget.php | 26 | 0.42 | 0.10 | 12.98 |
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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/memit-widget/memitwidget.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/skylark-memit-widget.php
- > Network (severe)
wp-admin/skylark-memit-widget.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
memit-widget/memitwidget.php 92% from 13 tests
The entry point to "memit.com Widget" version 0.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("memit-widget.php" instead of "memitwidget.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
Everything looks great! No dangerous files found in this plugin64 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 8 | 64 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/screenshot-2.png | 61.87KB | 29.65KB | ▼ 52.08% |
img/screenshot-3.png | 65.29KB | 30.37KB | ▼ 53.48% |
img/screenshot-1.png | 234.61KB | 77.07KB | ▼ 67.15% |