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.01MB] [CPU: ▼8.06ms] Passed 4 tests
This is a short check of server-side resources used by Yourllp Affiliate - yourllp.com official WordPress Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.00 ▼6.60 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.39 ▲0.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.39 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.46 ▼21.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.42 ▼0.01 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Yourllp Affiliate - yourllp.com official WordPress Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 14.47 ▲0.07 | 1.70 ▼0.07 | 41.86 ▼13.21 |
Dashboard /wp-admin | 2,221 ▲30 | 5.81 ▼0.09 | 95.61 ▼7.05 | 38.83 ▼0.98 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.05 ▼0.07 | 36.05 ▼1.54 | 33.18 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.57 ▲0.27 | 661.95 ▼39.69 | 49.28 ▼7.77 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.19 ▼0.07 | 99.67 ▼6.14 | 41.85 ▼4.42 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yourllp-affiliate/templates/htmlpage.php
- > /wp-content/plugins/yourllp-affiliate/templates/shortcode.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yourllp-affiliate/templates/mypage.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/settings.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yourllp-affiliate/templates/lists.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/yourllp-affiliate.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourllp-affiliate/shortcode.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/yourllp-affiliate/templates/page.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tested up to: Version not formatted correctly
- Contributors: The plugin contributors field is missing
yourllp-affiliate/yourllp-affiliate.php 85% from 13 tests
Analyzing the main PHP file in "Yourllp Affiliate - yourllp.com official WordPress Plugin" version 0.0.1
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "5.2")
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
Success! There were no dangerous files found in this plugin328 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 77 | 108 | 307 |
CSS | 1 | 5 | 3 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 3.97MB with 2.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image2.png | 311.93KB | 111.60KB | ▼ 64.22% |
images/image11.png | 556.13KB | 202.26KB | ▼ 63.63% |
images/image10.png | 644.67KB | 219.16KB | ▼ 66.00% |
images/image4.png | 215.44KB | 83.61KB | ▼ 61.19% |
images/image5.png | 348.27KB | 106.16KB | ▼ 69.52% |