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.08MB] [CPU: ▼0.61ms] Passed 4 tests
This is a short check of server-side resources used by Whereabouts: Swarm
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 45.94 ▲4.06 |
Dashboard /wp-admin | 3.45 ▲0.15 | 71.14 ▲16.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.31 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.50 ▼8.57 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.44 ▲0.48 |
Whereabouts: Swarm /wp-admin/options-general.php?page=whereabouts_swarm | 3.24 | 32.44 |
Server storage [IO: ▲0.03MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_whereabouts_swarm_widget |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Whereabouts: Swarm
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.35 ▼0.03 | 1.78 ▼0.58 | 41.56 ▼3.91 |
Dashboard /wp-admin | 2,200 ▲23 | 5.64 ▼0.06 | 84.00 ▼17.28 | 40.09 ▼1.53 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▼0.01 | 39.90 ▲2.35 | 35.02 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼15 | 17.64 ▼5.54 | 682.95 ▲7.57 | 60.43 ▼7.50 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.23 ▲0.09 | 99.95 ▼18.27 | 44.80 ▼3.67 |
Whereabouts: Swarm /wp-admin/options-general.php?page=whereabouts_swarm | 910 | 2.02 | 22.86 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_whereabouts_swarm_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=whereabouts_swarm
- > Notice in wp-content/plugins/whereabouts-swarm/whereabouts-swarm.php+165
Trying to access array offset on value of type bool
SRP 50% 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/whereabouts-swarm/includes/display-location.php:98
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/whereabouts-swarm/includes/widget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whereabouts-swarm/includes/get-location.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
9 plugin tags: digitalnomad, timezone, location, swarm, travel...
whereabouts-swarm/whereabouts-swarm.php Passed 13 tests
The primary PHP file in "Whereabouts: Swarm" version 0.5.0 is used by WordPress to initiate all plugin functionality
83 characters long description:
Display your current location, automatically updated by your latest Swarm check-in.
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 plugin282 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 101 | 280 |
CSS | 1 | 0 | 1 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/swarm-logo.png | 5.38KB | 4.99KB | ▼ 7.20% |