Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.87ms] Passed 4 tests
A check of server-side resources used by digikalaScraper – دیجی کالا اسکرپر
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.12 | 42.62 ▲3.61 |
Dashboard /wp-admin | 3.54 ▲0.17 | 45.94 ▼14.09 |
Posts /wp-admin/edit.php | 3.64 ▲0.25 | 51.15 ▲3.07 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.31 | 77.98 ▼25.33 |
Media Library /wp-admin/upload.php | 3.48 ▲0.22 | 34.64 ▲0.87 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
IB_digikalaScraper_settings |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
digikalaScraper – دیجی کالا اسکرپر: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.22 ▼1.18 | 1.76 ▼0.04 | 46.33 ▲7.49 |
Dashboard /wp-admin | 2,222 ▲34 | 4.86 ▼0.02 | 108.93 ▼7.48 | 42.06 ▼3.78 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.05 ▲0.05 | 40.39 ▲4.19 | 34.54 ▲4.62 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 18.36 ▼4.86 | 616.24 ▼72.50 | 57.08 ▼0.83 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.18 ▲0.07 | 98.50 ▼1.26 | 41.29 ▼1.30 |
Uninstaller [IO: ✅] [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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- IB_digikalaScraper_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/digikalascraper/include/ib.php
- > /wp-content/plugins/digikalascraper/digikalaScraper.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/digikalascraper/include/panel.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is missing in digikalascraper/assets to your readme.txt
- Requires at least: Invalid plugin version format
digikalascraper/digikalaScraper.php 92% from 13 tests
The principal PHP file in "digikalaScraper – دیجی کالا اسکرپر" v. 0.0.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("digikalascraper.php" instead of "digikalaScraper.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,326 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 51 | 15 | 928 |
CSS | 2 | 36 | 20 | 351 |
JavaScript | 1 | 10 | 0 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 121.00 |
▷ Minimum class complexity | 121.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/star.png | 0.65KB | 0.36KB | ▼ 45.59% |
assets/img/cart.png | 0.93KB | 0.55KB | ▼ 40.51% |
assets/img/specialsell.png | 1.21KB | 1.18KB | ▼ 2.11% |