Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.60ms] Passed 4 tests
Server-side resources used by Linkz.ai - Automatic link previews on hover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.61 ▲2.44 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.54 ▼11.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.92 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.97 ▼12.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.44 ▲2.58 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Linkz.ai - Automatic link previews on hover
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.29 ▼1.08 | 1.73 ▼0.08 | 44.08 ▲2.93 |
Dashboard /wp-admin | 2,209 ▲18 | 5.84 ▼0.05 | 103.11 ▲1.83 | 75.03 ▲33.15 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.12 | 40.23 ▲3.83 | 33.98 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 22.55 ▼0.48 | 688.49 ▼1.62 | 58.45 ▲0.24 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.29 ▲0.03 | 96.82 ▼11.95 | 76.75 ▲33.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
linkz-ai/init.php 92% from 13 tests
"Linkz.ai - Automatic link previews on hover" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("linkz-ai.php" instead of "init.php")
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 detected1,439 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 78 | 14 | 499 |
Sass | 1 | 61 | 0 | 428 |
CSS | 1 | 2 | 1 | 427 |
SVG | 2 | 0 | 0 | 60 |
JavaScript | 1 | 6 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 14 | 53.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 46.15% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.71MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 196.39KB | 73.38KB | ▼ 62.63% |
assets/screenshot-3.png | 129.51KB | 92.53KB | ▼ 28.55% |
assets/img/icon.png | 1.06KB | 0.72KB | ▼ 31.89% |
assets/icon-256x256.png | 15.76KB | 7.45KB | ▼ 52.73% |
assets/icon-128x128.png | 6.05KB | 3.55KB | ▼ 41.30% |