Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼7.20ms] Passed 4 tests
Analyzing server-side resources used by affilinet Product Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.06 ▲2.14 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.18 ▼6.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.45 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.36 | 69.84 ▼20.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.83 ▲3.72 |
affilinet Widgets /wp-admin/options-general.php?page=affilinet-product-widgets-settings | 3.30 | 31.63 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_affilinetwidgetswidget |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by affilinet Product Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.21 ▼1.16 | 4.30 ▲2.41 | 42.09 ▼11.53 |
Dashboard /wp-admin | 2,230 ▲39 | 5.80 ▼0.09 | 96.31 ▼24.92 | 39.28 ▼7.34 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.02 | 39.55 ▲3.69 | 40.76 ▲3.47 |
Add New Post /wp-admin/post-new.php | 155 ▼1,359 | 1.73 ▼15.95 | 18.32 ▼655.16 | 9.84 ▼54.78 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.19 ▼0.04 | 105.22 ▲6.37 | 46.15 ▲2.70 |
affilinet Widgets /wp-admin/options-general.php?page=affilinet-product-widgets-settings | 903 | 2.06 | 27.21 | 35.03 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- can_compress_scripts
- widget_affilinetwidgetswidget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/affilinet-product-widgets/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affilinet-product-widgets/classes/AffilinetWidgetsWidget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/affilinet-product-widgets/affilinet-product-widgets.php:14
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: advertising, widgets, affilinet, affiliate, banner
affilinet-product-widgets/affilinet-product-widgets.php Passed 13 tests
This is the main PHP file of "affilinet Product Widgets" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
The plugin allows you simple integration of affilinet Product Widgets into your WordPress posts and sidebar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected879 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 137 | 106 | 380 |
PO File | 5 | 120 | 115 | 345 |
JavaScript | 2 | 32 | 5 | 103 |
Markdown | 1 | 24 | 0 | 45 |
CSS | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 5 | 20.83% |
▷ Public methods | 24 | 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 | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/affilinet_signet_small.png | 5.63KB | 2.62KB | ▼ 53.55% |
images/affilinet_icon.png | 1.30KB | 1.36KB | 0.00% |
images/dummy.png | 18.00KB | 6.94KB | ▼ 61.44% |
images/affilinet_logo.png | 4.25KB | 1.85KB | ▼ 56.37% |
images/affilinet_signet.png | 12.96KB | 6.80KB | ▼ 47.52% |