Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/anylink/classes/al_filter.php+11
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.65ms] Passed 4 tests
A check of server-side resources used by anyLink
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.35 ▲3.24 |
Dashboard /wp-admin | 3.47 ▲0.13 | 47.84 ▼7.62 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 46.37 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 80.71 ▼14.41 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 34.54 ▼0.92 |
anylink Settings /wp-admin/options-general.php?page=anyLinkSetting | 3.42 | 30.66 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_al_urls |
wp_al_urls_index |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
anyLink: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▼0.18 | 1.79 ▲0.23 | 44.59 ▲4.23 |
Dashboard /wp-admin | 2,199 ▲18 | 5.51 ▼0.06 | 87.17 ▼13.85 | 38.14 ▼7.11 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.02 | 36.72 ▼1.60 | 31.15 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6,224 ▲4,698 | 26.01 ▲2.27 | 808.47 ▲149.90 | 49.33 ▼4.07 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.15 ▼0.06 | 92.56 ▼3.72 | 40.12 ▼3.26 |
anylink Settings /wp-admin/options-general.php?page=anyLinkSetting | 928 | 2.04 | 22.45 | 28.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/anylink/re.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: gotoLink in wp-content/plugins/anylink/re.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/anylink/config.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/anylink/config.php:6
- > PHP Notice
Undefined variable: gotoLink in wp-content/plugins/anylink/re.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: A description for screenshot #1 is missing in anylink/assets to your readme.txt
anylink/anyLink.php 85% from 13 tests
The principal PHP file in "anyLink" v. 0.3.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("anylink.php" instead of "anyLink.php")
- Description: The description should be shorter than 140 characters (currently 254 characters long)
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 plugin1,289 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 24 | 191 | 1,081 |
PO File | 1 | 59 | 61 | 177 |
CSS | 1 | 0 | 0 | 22 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.33% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donate_alipay.png | 14.51KB | 6.61KB | ▼ 54.43% |