Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.29MB] [CPU: ▼28.64ms] Passed 4 tests
Analyzing server-side resources used by Affiliator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▼0.40 | 15.81 ▼23.69 |
Dashboard /wp-admin | 3.49 ▲0.19 | 37.31 ▼13.24 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 32.61 ▼14.33 |
Add New Post /wp-admin/post-new.php | 4.89 ▼1.00 | 45.66 ▼63.31 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 40.34 ▲9.64 |
Affiliate Προγράμματα /wp-admin/admin.php?page=affiliator-plugin-sites | 3.46 | 31.61 |
Affiliator /wp-admin/admin.php?page=affiliator-plugin-menu | 3.50 | 33.47 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=merchants | 3.51 | 38.32 |
Affiliate Δίκτυα /wp-admin/admin.php?page=affiliator-plugin-networks | 3.46 | 32.76 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=merchants | 3.51 | 35.54 |
Εισαγωγή Προϊόντων /wp-admin/admin.php?page=affiliator-plugin-products | 3.46 | 31.34 |
Add New /wp-admin/post-new.php?post_type=networks | 3.63 | 52.78 |
Δίκτυα /wp-admin/edit.php?post_type=networks | 3.43 | 33.29 |
Add New /wp-admin/post-new.php?post_type=merchants | 3.65 | 56.79 |
Προγράμματα /wp-admin/edit.php?post_type=merchants | 3.43 | 27.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
general_settings |
can_compress_scripts |
affiliator_texts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
affiliator_auto_post |
db_upgraded |
category_children |
Browser metrics Passed 4 tests
Affiliator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲203 | 13.15 ▼1.43 | 1.77 ▼0.35 | 37.55 ▼10.96 |
Dashboard /wp-admin | 2,313 ▲125 | 5.81 ▲0.68 | 104.63 ▲0.63 | 40.79 ▼1.85 |
Posts /wp-admin/edit.php | 2,202 ▲113 | 1.99 ▼0.03 | 36.58 ▲1.93 | 40.37 ▲6.00 |
Add New Post /wp-admin/post-new.php | 1,507 ▼13 | 22.45 ▼0.74 | 597.69 ▼30.16 | 31.83 ▼17.92 |
Media Library /wp-admin/upload.php | 1,498 ▲110 | 4.23 ▲0.06 | 98.23 ▲3.04 | 43.12 ▲0.58 |
Affiliate Προγράμματα /wp-admin/admin.php?page=affiliator-plugin-sites | 909 | 2.03 | 22.08 | 25.10 |
Affiliator /wp-admin/admin.php?page=affiliator-plugin-menu | 1,401 | 3.45 | 53.58 | 33.47 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=merchants | 1,556 | 2.29 | 29.74 | 37.28 |
Affiliate Δίκτυα /wp-admin/admin.php?page=affiliator-plugin-networks | 888 | 1.99 | 21.97 | 26.27 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=merchants | 1,414 | 2.28 | 28.81 | 35.02 |
Εισαγωγή Προϊόντων /wp-admin/admin.php?page=affiliator-plugin-products | 902 | 2.04 | 25.81 | 26.65 |
Add New /wp-admin/post-new.php?post_type=networks | 2,408 | 7.73 | 169.02 | 69.22 |
Δίκτυα /wp-admin/edit.php?post_type=networks | 1,708 | 2.04 | 34.16 | 34.32 |
Add New /wp-admin/post-new.php?post_type=merchants | 2,605 | 7.91 | 175.64 | 64.02 |
Προγράμματα /wp-admin/edit.php?post_type=merchants | 1,221 | 1.93 | 32.55 | 32.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/affiliator-lite/lib/affiliator.php+288
Undefined index: name
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- affiliator_texts
- can_compress_scripts
- category_children
- widget_recent-posts
- affiliator_auto_post
- db_upgraded
- general_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=affiliator-plugin-products
- > Notice in wp-content/plugins/affiliator-lite/lib/affiliator.php+802
Undefined offset: 1
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=merchants
- > Notice in wp-content/plugins/affiliator-lite/lib/affiliator.php+288
Undefined index: name
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/affiliator-lite/templates/common/views.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/affiliator-lite/templates/archive/grid.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/affiliator-lite/templates/single/default.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/affiliator-lite/templates/single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/affiliator-lite/templates/archive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/affiliator-lite/affiliator.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/affiliator-lite/templates/archive/list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/affiliator-lite/templates/archive/compact.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: affiliate, linkwise, forestview
affiliator-lite/affiliator.php 92% from 13 tests
The primary PHP file in "Affiliator" version 2.1.3 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 ("affiliator-lite.php" instead of "affiliator.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
There were no executable files found in this plugin1,822 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 399 | 204 | 1,665 |
CSS | 1 | 15 | 0 | 157 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 84.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 15.58% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected