Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.33ms] Passed 4 tests
A check of server-side resources used by Web2Store from Adelya
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 26.82 ▼13.45 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.56 ▼5.00 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.35 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.89 ▼11.24 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.15 ▲0.36 |
Adelya /wp-admin/options-general.php?page=adminAdelya | 3.30 | 31.25 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_adelya_newsletter |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Web2Store from Adelya: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.19 ▼1.39 | 1.70 ▼0.17 | 45.71 ▼3.74 |
Dashboard /wp-admin | 2,212 ▲21 | 5.87 ▲0.80 | 106.13 ▲2.81 | 38.73 ▼5.18 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.01 | 34.24 ▼5.17 | 33.84 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.40 ▼4.91 | 634.27 ▼39.52 | 53.96 ▼0.07 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.03 | 95.93 ▼12.35 | 40.69 ▼6.35 |
Adelya /wp-admin/options-general.php?page=adminAdelya | 1,242 | 2.07 | 27.45 | 30.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_adelya_newsletter
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Notice in wp-content/plugins/web2store-from-adelya/form.php+18
Undefined index: access_verif
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Notice in wp-content/plugins/web2store-from-adelya/form.php+34
Undefined index: codeGroup
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Notice in wp-content/plugins/web2store-from-adelya/form.php+35
Undefined index: server
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Notice in wp-content/plugins/web2store-from-adelya/form.php+108
Undefined variable: i
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Warning in wp-content/plugins/web2store-from-adelya/shortcode_list.php+21
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/options-general.php?page=adminAdelya
- > Notice in wp-content/plugins/web2store-from-adelya/resize.php+50
Undefined variable: resize
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/web2store-from-adelya/newsletterWidget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot_admin :), #2 (Screenshot_Shortcode :), #3 (Screenshot_Module :), #4 (Screenshot_translate_admin :), #5 (Screenshot_translate_module :)
- Screenshots: Add descriptions for screenshots #0, #0, #0, #0, #0 in web2store-from-adelya/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== web2store-from-adelya ===
)
web2store-from-adelya/adelya.php 92% from 13 tests
The primary PHP file in "Web2Store from Adelya" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("web2store-from-adelya.php" instead of "adelya.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected684 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 207 | 83 | 560 |
JSON | 1 | 0 | 0 | 98 |
CSS | 1 | 15 | 1 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 1.73MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/icon-128x128.png | 19.56KB | 2.88KB | ▼ 85.28% |
asset/banner-772x250.png | 183.73KB | 101.14KB | ▼ 44.95% |
asset/screenshot_Shortcode.png | 151.71KB | 43.78KB | ▼ 71.14% |
asset/screenshot_translate_admin.png | 285.83KB | 83.84KB | ▼ 70.67% |
asset/screenshot_translate_module.png | 398.34KB | 121.98KB | ▼ 69.38% |