Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.77ms] Passed 4 tests
Analyzing server-side resources used by Pelagios Widgets for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.61 ▼6.40 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.16 ▼5.18 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.18 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.27 ▼2.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.36 ▲3.51 |
Pelagios Widgets /wp-admin/options-general.php?page=wp-pelagios-settings | 3.29 | 32.84 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 15 new options
New WordPress options |
---|
wp_pelagios_db_version |
wp_pelagios_js_source |
db_upgraded |
theysaidso_admin_options |
wp_pelagios_quicktags |
wp_pelagios_button |
widget_theysaidso_widget |
wp_pelagios_search_widget_maps |
wp_pelagios_place_on_mouseover |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pelagios Widgets for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲61 | 13.15 ▼1.08 | 1.82 ▼0.11 | 37.87 ▼8.88 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.04 | 112.70 ▲9.69 | 39.66 ▼2.00 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.02 | 39.82 ▲6.29 | 34.44 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,525 ▼17 | 23.17 ▲5.15 | 657.56 ▲8.46 | 62.62 ▲11.46 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.05 | 92.85 ▼10.95 | 45.03 ▲0.33 |
Pelagios Widgets /wp-admin/options-general.php?page=wp-pelagios-settings | 1,026 | 2.07 | 24.29 | 30.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pelagios-widgets-for-wordpress/inc/widgets/widget-pelagios-search.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pelagios-widgets-for-wordpress/inc/admin/admin-init.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pelagios-widgets-for-wordpress/inc/wp/functions.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pelagios-widgets-for-wordpress/inc/widgets/widget-pelagios-search.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pelagios-widgets-for-wordpress/inc/admin/admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (icon), #2 (popup)
- Tags: You are using too many tags: 12 tag instead of maximum 10
pelagios-widgets-for-wordpress/wp-pelagios.php 77% from 13 tests
"Pelagios Widgets for WordPress" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 350 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pelagios-widgets-for-wordpress.php" instead of "wp-pelagios.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,474 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 40 | 116 | 0 | 1,081 |
PHP | 10 | 151 | 424 | 986 |
JSON | 1 | 7 | 0 | 132 |
Handlebars | 12 | 10 | 0 | 123 |
CSS | 5 | 4 | 39 | 90 |
JavaScript | 28 | 22 | 98 | 62 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
49 PNG files occupy 0.42MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/js/build/images/partner_icons/gap_logo.png | 1.28KB | 1.20KB | ▼ 6.17% |
inc/assets/js/build/images/place_type_icons/island2.png | 1.20KB | 0.58KB | ▼ 51.42% |
inc/assets/js/build/images/place_type_icons/settlement.png | 1.34KB | 0.76KB | ▼ 43.53% |
inc/assets/js/build/images/partner_icons/nomisma.png | 1.06KB | 0.79KB | ▼ 24.84% |
inc/assets/js/build/images/icons/pelagios.png | 1.23KB | 1.02KB | ▼ 17.00% |