Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲0.52ms] Passed 4 tests
Analyzing server-side resources used by Waiting for the tide (UK)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 44.30 ▲3.64 |
Dashboard /wp-admin | 4.17 ▲0.86 | 51.10 ▲3.32 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 60.05 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 97.27 ▼7.25 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 45.30 ▲7.04 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 398 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_tide_table |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Waiting for the tide (UK)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 13.86 ▼0.70 | 9.43 ▲7.37 | 39.09 ▲0.56 |
Dashboard /wp-admin | 2,199 ▲22 | 5.67 ▲0.01 | 95.70 ▲3.22 | 41.23 ▼8.26 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.04 ▲0.02 | 40.52 ▲0.98 | 36.22 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.20 ▼0.03 | 596.47 ▼52.94 | 49.35 ▼7.70 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.30 ▲0.04 | 97.57 ▼12.24 | 42.32 ▼3.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_tide_table
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/waiting-for-the-tide-uk/tide-plugin.php
- 197× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/Node/DeprecatedNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/Node/Expression/Test/NullTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/Node/SandboxNode.php:21
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/Node/Expression/Binary/AndBinary.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/NodeVisitor/EscaperNodeVisitor.php:35
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/Node/Expression/Binary/PowerBinary.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/waiting-for-the-tide-uk/lib/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
5 plugin tags: uk tides, waiting for the tide, tides, tide times, tide heights
waiting-for-the-tide-uk/tide-plugin.php 69% from 13 tests
The entry point to "Waiting for the tide (UK)" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("waiting-for-the-tide-uk.php" instead of "tide-plugin.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
Everything looks great! No dangerous files found in this plugin31,305 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 319 | 4,811 | 10,123 | 24,935 |
Markdown | 15 | 1,233 | 0 | 3,601 |
JSON | 15 | 0 | 0 | 1,380 |
CSS | 4 | 11 | 19 | 537 |
Sass | 2 | 27 | 6 | 408 |
Twig | 2 | 2 | 64 | 147 |
JavaScript | 4 | 39 | 15 | 144 |
YAML | 3 | 43 | 33 | 143 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 10.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 38 | |
Traits | 3 | |
Classes | 256 | |
▷ Abstract classes | 12 | 4.69% |
▷ Concrete classes | 244 | 95.31% |
▷ Final classes | 95 | 38.93% |
Methods | 1,627 | |
▷ Static methods | 212 | 13.03% |
▷ Public methods | 1,389 | 85.37% |
▷ Protected methods | 52 | 3.20% |
▷ Private methods | 186 | 11.43% |
Functions | 287 | |
▷ Named functions | 184 | 64.11% |
▷ Anonymous functions | 103 | 35.89% |
Constants | 124 | |
▷ Global constants | 7 | 5.65% |
▷ Class constants | 117 | 94.35% |
▷ Public constants | 105 | 89.74% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.03MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 15.50KB | 5.65KB | ▼ 63.56% |
assets/icon-128x128.png | 7.97KB | 3.24KB | ▼ 59.33% |
assets/screenshot-2.png | 187.34KB | 54.58KB | ▼ 70.87% |
assets/banner-772x250.png | 63.07KB | 18.41KB | ▼ 70.82% |
assets/screenshot-4.png | 191.46KB | 53.80KB | ▼ 71.90% |