Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.24ms] Passed 4 tests
This is a short check of server-side resources used by Affiliate program for your website ( integration with Sdelka.biz )
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.87 ▲2.79 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.48 ▼5.47 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 53.61 ▲7.04 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.80 ▼8.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.32 ▼1.97 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
sdelka_termlink |
widget_recent-posts |
sdelka_user_exist |
sdelka_ssid |
widget_sdelka_widget |
sdelka_login |
sdelka_apikey |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate program for your website ( integration with Sdelka.biz )
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲264 | 13.53 ▼0.91 | 568.22 ▲566.58 | 37.14 ▼4.32 |
Dashboard /wp-admin | 2,232 ▲60 | 5.51 ▼0.13 | 83.06 ▼16.15 | 87.30 ▲46.61 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 1.99 ▼0.02 | 32.90 ▼3.26 | 33.24 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,573 ▲45 | 23.00 ▼0.08 | 695.45 ▲10.37 | 52.08 ▼2.80 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.19 ▼0.01 | 94.48 ▼10.82 | 67.50 ▲22.85 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_sdelka_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 output text when accessed directly:
- > /wp-content/plugins/affiliate-marketing/public/partials/sdelka-public-display.php
- > /wp-content/plugins/affiliate-marketing/admin/partials/sdelka-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliate-marketing/includes/class-sdelka-widget.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: sdelka, affiliate, social buttons, referral plugin, social media share...
affiliate-marketing/sdelka.php 77% from 13 tests
The main file in "Affiliate program for your website ( integration with Sdelka.biz )" v. 1.1.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("affiliate-marketing.php" instead of "sdelka.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 181 characters long)
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
Good job! No executable or dangerous file extensions detected482 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 171 | 571 | 426 |
PO File | 1 | 9 | 11 | 31 |
SVG | 1 | 0 | 0 | 22 |
CSS | 1 | 1 | 3 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin