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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲164.11ms] Passed 4 tests
An overview of server-side resources used by Lynked Loyalty
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.82 ▲5.48 |
Dashboard /wp-admin | 3.44 ▲0.13 | 262.13 ▲218.37 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 271.85 ▲229.06 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 301.92 ▲216.58 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 250.72 ▲216.02 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Lynked Loyalty
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 14.35 ▼0.36 | 30.05 ▲28.49 | 53.47 ▲12.44 |
Dashboard /wp-admin | 2,225 ▲54 | 5.91 ▲0.24 | 95.77 ▲7.96 | 85.74 ▲44.01 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.53 ▲0.38 | 33.67 ▼1.11 | 32.79 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.16 ▲0.11 | 703.64 ▲38.12 | 37.46 ▼13.73 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.60 ▲0.44 | 92.72 ▼10.68 | 84.15 ▲40.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lynked-loyalty/templates/app.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lynked-loyalty/lynked-loyalty.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: referrals, rewards, loyalty, free, woocommerce
lynked-loyalty/lynked-loyalty.php 92% from 13 tests
Analyzing the main PHP file in "Lynked Loyalty" version 0.1.1
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin27,011 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 24,233 |
Sass | 11 | 265 | 0 | 1,381 |
JSX | 30 | 107 | 2 | 813 |
PHP | 4 | 49 | 45 | 281 |
JavaScript | 17 | 50 | 11 | 273 |
CSS | 3 | 3 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 18 | |
▷ Named functions | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.74MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/shared/img/logo.png | 317.19KB | 140.21KB | ▼ 55.80% |
src/shared/img/logo_modal.png | 15.43KB | 7.63KB | ▼ 50.56% |
build/images/ios.bc48cfd4.png | 35.79KB | 16.54KB | ▼ 53.78% |
src/shared/img/download.png | 0.39KB | 0.37KB | ▼ 5.03% |
src/shared/img/android.png | 8.87KB | 4.31KB | ▼ 51.40% |