Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼0.66ms] Passed 4 tests
This is a short check of server-side resources used by 5 Anker Connect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 39.56 ▼2.03 |
Dashboard /wp-admin | 3.74 ▲0.44 | 53.22 ▲5.91 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 49.52 ▲1.55 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 97.23 ▼6.43 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.53 ▲4.29 |
5 Anker Connect /wp-admin/options-general.php?page=5-anker-connect | 3.57 | 33.25 |
Server storage [IO: ▲0.32MB] [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: 143 new files
Database: no new tables, 7 new options
New WordPress options |
---|
connect_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
5 Anker Connect: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲124 | 15.44 ▲0.82 | 3.19 ▲1.20 | 42.82 ▲2.43 |
Dashboard /wp-admin | 2,226 ▲38 | 6.47 ▲0.60 | 131.93 ▲15.36 | 38.44 ▼5.56 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 3.70 ▲1.66 | 80.93 ▲39.86 | 36.32 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6,505 ▲4,968 | 21.97 ▼1.12 | 937.41 ▲295.20 | 38.50 ▼16.77 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 5.29 ▲1.10 | 130.76 ▲23.71 | 44.50 ▼2.09 |
5 Anker Connect /wp-admin/options-general.php?page=5-anker-connect | 879 | 3.30 | 57.66 | 23.46 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- connect_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/5-anker-connect/admin/partials/anker-connect-admin-display.php
- > /wp-content/plugins/5-anker-connect/public/partials/anker-connect-public-display.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/5-anker-connect/lib/siteorigin/cruise-slider/cruise-slider.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-newsletter.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-search.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-map.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-boats.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-search-watercamper.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-boats-grid.php:62
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/5-anker-connect/lib/siteorigin/boat/boat.php:12
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/5-anker-connect/lib/siteorigin/boat-book-calendar/boat-book-calendar.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-anker-connect/lib/blocks/wls-marina.php:62
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=5-anker-connect
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 3:1808 Uncaught TypeError: Cannot set properties of undefined (setting 'wrap')
- > GET request to /wp-admin/options-general.php?page=5-anker-connect
- > Javascript (severe) in unknown
/wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef 1:9135 Uncaught TypeError: Cannot read properties of undefined (reading 'defaultHooks')
- > GET request to /wp-admin/options-general.php?page=5-anker-connect
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=5-anker-connect 201:8 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=5-anker-connect
- > Javascript (severe) in unknown
/wp-admin/js/common.min.js?ver=6.3.1 1:69 Uncaught TypeError: Cannot read properties of undefined (reading '__')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: importer, 5anker, charter
5-anker-connect/anker-connect.php 92% from 13 tests
Analyzing the main PHP file in "5 Anker Connect" version 1.3.1
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("5-anker-connect.php" instead of "anker-connect.php")
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
Good job! No executable or dangerous file extensions detected4,483 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 684 | 1,235 | 3,111 |
JavaScript | 19 | 143 | 435 | 930 |
CSS | 36 | 37 | 178 | 183 |
PO File | 1 | 69 | 171 | 157 |
SVG | 1 | 0 | 1 | 100 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 1 | 2.27% |
Methods | 219 | |
▷ Static methods | 8 | 3.65% |
▷ Public methods | 180 | 82.19% |
▷ Protected methods | 34 | 15.53% |
▷ Private methods | 5 | 2.28% |
Functions | 38 | |
▷ Named functions | 33 | 86.84% |
▷ Anonymous functions | 5 | 13.16% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/blocks/wls-search-day/anker.png | 27.09KB | 14.03KB | ▼ 48.23% |
lib/blocks/wls-search/anker.png | 27.09KB | 14.03KB | ▼ 48.23% |
lib/blocks/wls-search-watercamper/anker.png | 27.09KB | 14.03KB | ▼ 48.23% |