Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.37ms] Passed 4 tests
This is a short check of server-side resources used by UK tides - heights and times
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 36.81 ▼0.61 |
Dashboard /wp-admin | 3.59 ▲0.25 | 47.45 ▼12.88 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 52.66 ▲6.54 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 81.19 ▼13.00 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 41.17 ▲5.03 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
UK tides - heights and times: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.28 ▼0.28 | 1.76 ▲0.11 | 38.58 ▼2.56 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▼0.08 | 85.88 ▼10.62 | 42.25 ▲0.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.03 | 37.42 ▼7.35 | 34.89 ▼2.74 |
Add New Post /wp-admin/post-new.php | 6,362 ▲4,836 | 27.74 ▲4.70 | 908.70 ▲204.62 | 68.18 ▲14.69 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.16 ▼0.02 | 97.00 ▼13.50 | 44.35 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uk-tides/uk-tides.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uk-tides/libs/oik-shortcodes.php:485
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example UK tides block - for Chichester Harbour (Entrance) from tidetimes.org.uk), #2 (Sample output for Portsmouth, Hants - from tidetimes.org.uk), #3 (Sample output for Portsmouth, Hants - from tidetimes.co.uk)
- Tested up to: Invalid version format
uk-tides/uk-tides.php Passed 13 tests
Analyzing the main PHP file in "UK tides - heights and times" version 3.2.0
69 characters long description:
uk-tides block and [bw_tides] shortcode for UK tide times and heights
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,441 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 417 | 279 | 2,173 |
PHP | 12 | 385 | 2,107 | 2,066 |
PO File | 2 | 24 | 18 | 92 |
JSON | 2 | 0 | 0 | 89 |
Markdown | 1 | 20 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 27 | 96.43% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 179 | |
▷ Named functions | 179 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 16.60KB | 6.33KB | ▼ 61.84% |
screenshot-2.png | 17.16KB | 6.44KB | ▼ 62.45% |