Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.73ms] Passed 4 tests
An overview of server-side resources used by digikala affiliate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.07 ▲0.89 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.89 ▼1.12 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.80 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.15 ▼9.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.67 ▲1.47 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for digikala affiliate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.32 ▼1.06 | 1.77 ▲0.12 | 48.26 ▲6.60 |
Dashboard /wp-admin | 2,224 ▲18 | 4.90 ▲0.01 | 99.97 ▼6.10 | 68.86 ▲28.16 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▼0.03 | 34.79 ▼3.25 | 33.77 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,692 ▲147 | 22.40 ▼0.63 | 757.47 ▲67.54 | 47.90 ▼18.95 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.15 ▼0.08 | 104.75 ▼8.36 | 49.15 ▲2.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (Preview of digikala affiliate setting page) image required
digikala-affiliate/digikala-affiliate.php 85% from 13 tests
The main PHP script in "digikala affiliate" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.0.0")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
No dangerous file extensions were detected269 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 18 | 201 |
PO File | 1 | 14 | 15 | 68 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.44 |
▷ 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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 54.47KB | 18.24KB | ▼ 66.51% |
img/logo-m.png | 2.63KB | 0.92KB | ▼ 65.07% |
img/logo.png | 8.60KB | 3.47KB | ▼ 59.62% |