Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.35ms] Passed 4 tests
Server-side resources used by Where I Was, Where I Will Be
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.85 ▲2.01 |
Dashboard /wp-admin | 3.51 ▲0.20 | 49.05 ▼2.07 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 53.99 ▲6.34 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 96.78 ▼7.68 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 45.75 ▲9.25 |
Manage Types /wp-admin/admin.php?page=wiw_type | 3.42 | 35.65 |
Edit Locals /wp-admin/admin.php?page=wiw_edit_local | 3.44 | 46.63 |
Manage Locals /wp-admin/admin.php?page=wiwwiwb | 3.41 | 34.48 |
Settings /wp-admin/admin.php?page=wiw_settings | 3.41 | 34.85 |
New Local /wp-admin/admin.php?page=wiw_new_local | 3.43 | 38.22 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 289 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_wiw_type |
wp_wiw_locals |
New WordPress options |
---|
widget_theysaidso_widget |
plugin_error |
wiw_standard_text |
theysaidso_admin_options |
widget_recent-comments |
wiw_standard_type |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Where I Was, Where I Will Be
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲221 | 15.39 ▲1.09 | 13.27 ▲11.12 | 40.84 ▼3.22 |
Dashboard /wp-admin | 2,254 ▲66 | 6.07 ▲1.02 | 117.52 ▲16.27 | 89.76 ▲46.92 |
Posts /wp-admin/edit.php | 3,211 ▲1,122 | 3.02 ▲1.02 | 51.42 ▲13.89 | 34.98 ▲3.46 |
Add New Post /wp-admin/post-new.php | 2,780 ▲1,252 | 23.51 ▲5.34 | 660.56 ▲0.41 | 28.09 ▼34.89 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 5.20 ▲1.00 | 110.62 ▲11.36 | 72.21 ▲29.67 |
Manage Types /wp-admin/admin.php?page=wiw_type | 1,332 | 3.92 | 59.88 | 82.20 |
Edit Locals /wp-admin/admin.php?page=wiw_edit_local | 1,019 | 4.00 | 49.96 | 59.40 |
Manage Locals /wp-admin/admin.php?page=wiwwiwb | 872 | 2.34 | 32.56 | 25.68 |
Settings /wp-admin/admin.php?page=wiw_settings | 1,061 | 2.52 | 37.16 | 38.42 |
New Local /wp-admin/admin.php?page=wiw_new_local | 1,345 | 3.70 | 51.36 | 68.56 |
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 9 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wiw_standard_text
- wiw_standard_type
- plugin_error
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/where-i-was-where-i-will-be/wiwwiwb.php
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WIW_DIR_INCLUDE - assumed 'WIW_DIR_INCLUDE' (this will throw an Error in a future version of PHP) in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/edit_local.php on line 1
- > PHP Warning
Use of undefined constant WIW_DIR_INCLUDE - assumed 'WIW_DIR_INCLUDE' (this will throw an Error in a future version of PHP) in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/type.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/new_local.php:2
- > PHP Warning
Use of undefined constant WIW_DIR_INCLUDE - assumed 'WIW_DIR_INCLUDE' (this will throw an Error in a future version of PHP) in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/setting.php on line 1
- > PHP Warning
Use of undefined constant WIW_DIR_INCLUDE - assumed 'WIW_DIR_INCLUDE' (this will throw an Error in a future version of PHP) in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/new_local.php on line 1
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/where-i-was-where-i-will-be/system/include/include_user.php on line 7
- > PHP Warning
include_once(WIW_DIR_INCLUDEadmin.php): failed to open stream: No such file or directory in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/locals.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/insert/page_post.php:7
- > PHP Warning
include_once(): Failed opening 'WIW_DIR_INCLUDEadmin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/where-i-was-where-i-will-be/system/view/admin/edit_local.php on line 1
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/where-i-was-where-i-will-be/system/include/include_admin.php on line 5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiw_new_local
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&language&libraries=places%2Cgeometry%2Cdrawing&ver=6.3.1 246:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wiw_new_local
- > Network (severe)
wp-admin/%image% - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== where-i-was-where-i-will-be ===
)
where-i-was-where-i-will-be/wiwwiwb.php 92% from 13 tests
This is the main PHP file of "Where I Was, Where I Will Be" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("where-i-was-where-i-will-be.php" instead of "wiwwiwb.php")
Code Analysis Passed 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 detected2,818 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 259 | 163 | 1,949 |
JavaScript | 5 | 89 | 74 | 465 |
PO File | 1 | 131 | 211 | 292 |
CSS | 3 | 26 | 34 | 112 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
255 PNG files occupy 1.14MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/cd.png | 9.58KB | 3.71KB | ▼ 61.29% |
assets/css/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
assets/images/flags/tl.png | 2.54KB | 1.37KB | ▼ 46.12% |
assets/images/flags/fk.png | 10.71KB | 4.20KB | ▼ 60.78% |
assets/images/flags/sa.png | 11.09KB | 4.64KB | ▼ 58.11% |