Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/links-auto-replacer/admin/classes/class.base62.php+25
Uncaught Error: Call to undefined function bccomp() in wp-content/plugins/links-auto-replacer/admin/classes/class.base62.php:25
Stack trace:
#0 wp-content/plugins/links-auto-replacer/admin/class-lar-admin.php(61): base62::encode()
#1 wp-content/plugins/links-auto-replacer/includes/class-lar.php(181): Links_Auto_Replacer_Admin->__construct()
#2 wp-content/plugins/links-auto-replacer/includes/class-lar.php(76): Links_Auto_Replacer->define_admin_hooks()
#3 wp-content/plugins/links-auto-replacer/links-auto-replacer.php(77): Links_Auto_Replacer->__construct()
#4 wp-content/plugins/links-auto-replacer/links-auto-replacer.php(81): run_Links_Auto_Replacer()
#5 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#6 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests
Server-side resources used by Keywords to Links Converter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.44 ▼2.20 |
Dashboard /wp-admin | 3.31 ▲0.00 | 60.95 ▲13.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.70 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.70 ▼7.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.30 ▼3.64 |
Server storage [IO: ▲1.66MB] [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: 194 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Keywords to Links Converter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.21 ▼0.34 | 1.72 ▼0.06 | 37.24 ▼2.83 |
Dashboard /wp-admin | 2,192 ▲12 | 5.50 ▼0.07 | 81.07 ▼9.49 | 39.07 ▼1.80 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.08 ▲0.13 | 36.10 ▲0.34 | 33.08 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▼0.08 | 627.20 ▼45.34 | 59.61 ▲2.84 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.03 | 95.34 ▼9.39 | 41.60 ▼7.35 |
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
- The uninstall procedure has failed, 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 smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/links-auto-replacer/public/partials/lar-public-display.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/links-auto-replacer/admin/cmb/init.php:85
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/links-auto-replacer/admin/partials/settings.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/links-auto-replacer/admin/partials/license.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/links-auto-replacer/admin/partials/about.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/links-auto-replacer/admin/cmb/example-functions.php:53
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/links-auto-replacer/admin/partials/menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/links-auto-replacer/admin/cmb/bootstrap.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/links-auto-replacer/links-auto-replacer.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/links-auto-replacer/admin/partials/upgrade.php:1
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: keywords, links, convert keywords, marketing, affiliate...
links-auto-replacer/links-auto-replacer.php Passed 13 tests
Analyzing the main PHP file in "Keywords to Links Converter" version 2.2.3
49 characters long description:
Auto replace your affiliate links and track them.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected28,095 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 94 | 8,848 | 11,764 | 20,245 |
PHP | 33 | 1,296 | 2,503 | 3,802 |
CSS | 3 | 981 | 509 | 2,125 |
Sass | 9 | 158 | 24 | 1,069 |
JavaScript | 6 | 222 | 215 | 854 |
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.46 |
Average class complexity | 28.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 21 | 8.61% |
▷ Public methods | 227 | 93.03% |
▷ Protected methods | 3 | 1.23% |
▷ Private methods | 14 | 5.74% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cmb/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/cmb/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/cmb/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
admin/cmb/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/cmb/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |