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.37MB] [CPU: ▲5.48ms] Passed 4 tests
An overview of server-side resources used by Linkt
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 51.53 ▲12.30 |
Dashboard /wp-admin | 3.70 ▲0.40 | 56.01 ▲0.34 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 64.88 ▲14.11 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 94.76 ▼3.36 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 47.96 ▲12.64 |
All Linkt's /wp-admin/edit.php?post_type=linkt | 3.61 | 49.81 |
Add New /wp-admin/post-new.php?post_type=linkt | 3.65 | 57.55 |
Categories /wp-admin/edit-tags.php?taxonomy=linkt-cat&post_type=linkt | 3.58 | 42.04 |
Settings /wp-admin/edit.php?post_type=linkt&page=linkt_settings | 3.56 | 45.37 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
linkt_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Linkt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.30 ▼1.34 | 4.90 ▲3.17 | 42.94 ▼3.42 |
Dashboard /wp-admin | 2,304 ▲104 | 4.87 ▼0.04 | 101.48 ▼8.51 | 42.26 ▲0.77 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.05 ▲0.06 | 41.16 ▲6.90 | 35.40 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,563 ▲18 | 23.46 ▲0.13 | 652.14 ▼50.59 | 50.34 ▼10.62 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.28 ▲0.01 | 109.78 ▼2.23 | 45.89 ▼0.17 |
All Linkt's /wp-admin/edit.php?post_type=linkt | 1,106 | 1.93 | 34.94 | 33.29 |
Add New /wp-admin/post-new.php?post_type=linkt | 1,631 | 2.66 | 54.83 | 74.96 |
Categories /wp-admin/edit-tags.php?taxonomy=linkt-cat&post_type=linkt | 1,320 | 2.16 | 28.65 | 30.68 |
Settings /wp-admin/edit.php?post_type=linkt&page=linkt_settings | 1,017 | 2.15 | 26.73 | 32.65 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- linkt_version
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: referral, linkt, click tracking, link tracking, track links
linkt/linkt.php Passed 13 tests
Analyzing the main PHP file in "Linkt" version 1.0.8
84 characters long description:
Simply create links that you want to track and see the statistics in your Dashboard.
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
Success! There were no dangerous files found in this plugin1,747 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 326 | 494 | 1,173 |
CSS | 1 | 11 | 5 | 444 |
JavaScript | 7 | 27 | 10 | 130 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.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 | 46 | |
▷ Static methods | 3 | 6.52% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woocustomizer.png | 9.55KB | 4.05KB | ▼ 57.63% |
assets/images/paypal-donate.png | 13.99KB | 5.59KB | ▼ 60.05% |