Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼1.26ms] Passed 4 tests
This is a short check of server-side resources used by Tides Today UK and Ireland tide times
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 50.60 ▲9.67 |
Dashboard /wp-admin | 3.96 ▲0.66 | 50.96 ▲0.02 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 54.39 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 94.38 ▼11.08 |
Media Library /wp-admin/upload.php | 3.88 ▲0.66 | 46.49 ▲6.67 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 218 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_tides_today |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Tides Today UK and Ireland tide times
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.24 ▼1.14 | 1.93 ▲0.08 | 46.01 ▲0.00 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▲0.95 | 109.67 ▲0.90 | 38.22 ▼5.55 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 40.55 ▲3.18 | 35.59 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.31 ▲5.86 | 692.45 ▲11.49 | 52.87 ▼5.52 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.06 | 113.46 ▼0.37 | 48.71 ▲2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_tides_today
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tides-today-uk-ireland-tide-times/tides-today.php
- 56× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Class 'TidesToday\\TideTimes\\WidgetInput\\BaseWidgetInput' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/src/WidgetInput/SelectWidgetInput.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/src/Widget.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/psr7/src/Request.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/tides-today-uk-ireland-tide-times/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tide, sea, tide times, uk, ireland...
tides-today-uk-ireland-tide-times/tides-today.php 85% from 13 tests
The main file in "Tides Today UK and Ireland tide times" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("tides-today-uk-ireland-tide-times.php" instead of "tides-today.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected32,999 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 160 | 2,497 | 6,825 | 28,116 |
Markdown | 14 | 1,094 | 0 | 3,387 |
JSON | 12 | 0 | 0 | 1,129 |
Bourne Shell | 1 | 40 | 52 | 182 |
PO File | 1 | 25 | 25 | 81 |
YAML | 2 | 9 | 0 | 70 |
XML | 1 | 0 | 0 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 14.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 103 | |
▷ Abstract classes | 1 | 0.97% |
▷ Concrete classes | 102 | 99.03% |
▷ Final classes | 24 | 23.53% |
Methods | 766 | |
▷ Static methods | 158 | 20.63% |
▷ Public methods | 617 | 80.55% |
▷ Protected methods | 4 | 0.52% |
▷ Private methods | 145 | 18.93% |
Functions | 175 | |
▷ Named functions | 86 | 49.14% |
▷ Anonymous functions | 89 | 50.86% |
Constants | 171 | |
▷ Global constants | 45 | 26.32% |
▷ Class constants | 126 | 73.68% |
▷ Public constants | 126 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.30MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 115.37KB | 33.13KB | ▼ 71.28% |
assets/screenshot-3.png | 568.78KB | 153.92KB | ▼ 72.94% |
assets/icon-256x256.png | 19.27KB | 7.29KB | ▼ 62.19% |
assets/screenshot-4.png | 110.64KB | 31.59KB | ▼ 71.45% |
assets/icon-128x128.png | 8.72KB | 3.41KB | ▼ 60.92% |