Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.15MB] [CPU: ▼6.66ms] Passed 4 tests
Server-side resources used by Who owns Your Country?
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 22.63 ▼27.30 |
Dashboard /wp-admin | 3.42 ▲0.12 | 55.53 ▲2.35 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 55.61 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.57 ▼0.32 | 98.68 ▼3.27 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 43.66 ▲2.32 |
Owner Types /wp-admin/edit-tags.php?taxonomy=whoowns_owner_types&post_type=whoowns_owner | 3.43 | 46.59 |
Source Types /wp-admin/edit-tags.php?taxonomy=whoowns_source_types&post_type=whoowns_owner | 3.34 | 42.61 |
All Owners /wp-admin/edit.php?post_type=whoowns_owner | 3.39 | 42.63 |
New Owner /wp-admin/post-new.php?post_type=whoowns_owner | 3.41 | 62.65 |
States /wp-admin/edit-tags.php?taxonomy=whoowns_geo&post_type=whoowns_owner | 3.39 | 56.79 |
Server storage [IO: ▲2.02MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 194 new files
Database: 2 new tables, 29 new options
New tables |
---|
wp_whoowns_networks_cache |
wp_whoowns_shares |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
whoowns_legends_format |
whoowns_geo_children |
can_compress_scripts |
whoowns_owner_image_size |
whoowns_supported_file_types |
whoowns_threshold_show_arrows_in_network_when_move |
widget_recent-posts |
whoowns_capabilities |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Who owns Your Country?
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲187 | 14.15 ▲0.94 | 8.84 ▲7.16 | 46.74 ▲2.52 |
Dashboard /wp-admin | 2,259 ▲50 | 4.98 ▼0.87 | 113.52 ▲12.76 | 77.41 ▲40.58 |
Posts /wp-admin/edit.php | 2,153 ▲61 | 2.05 ▲0.01 | 39.99 ▲2.83 | 38.86 ▲6.35 |
Add New Post /wp-admin/post-new.php | 6,662 ▲5,129 | 23.73 ▲0.43 | 1,039.18 ▲245.32 | 42.26 ▼11.44 |
Media Library /wp-admin/upload.php | 1,464 ▲76 | 4.35 ▲0.13 | 95.97 ▼21.55 | 72.33 ▲29.19 |
Owner Types /wp-admin/edit-tags.php?taxonomy=whoowns_owner_types&post_type=whoowns_owner | 1,513 | 1.94 | 33.21 | 36.16 |
Source Types /wp-admin/edit-tags.php?taxonomy=whoowns_source_types&post_type=whoowns_owner | 1,315 | 1.93 | 33.38 | 34.84 |
All Owners /wp-admin/edit.php?post_type=whoowns_owner | 1,179 | 2.01 | 42.58 | 28.45 |
New Owner /wp-admin/post-new.php?post_type=whoowns_owner | 2,732 | 5.25 | 104.62 | 86.23 |
States /wp-admin/edit-tags.php?taxonomy=whoowns_geo&post_type=whoowns_owner | 2,530 | 1.93 | 34.63 | 48.50 |
Uninstaller [IO: ✅] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_whoowns_shares
- wp_whoowns_networks_cache
- Zombie WordPress options detected upon uninstall: 29 options
- whoowns_cron_ref_hour
- whoowns_news_search_api
- whoowns_geo_children
- widget_recent-posts
- whoowns_news_sources
- whoowns_cron_frequency
- widget_theysaidso_widget
- can_compress_scripts
- whoowns_default_related_owners_number
- whoowns_default_shareholders_number
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 0
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 1
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 2
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 3
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 4
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 5
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 6
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 7
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 8
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 9
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 10
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 11
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 12
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 13
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+133
Undefined offset: 14
- 15 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+163
Undefined property: stdClass::$shareholder_name
- 15 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+166
Undefined property: stdClass::$share
- > GET request to /wp-admin/post-new.php?post_type=whoowns_owner
- > Notice in wp-content/plugins/who-owns-your-country/admin.php+150
Undefined variable: done
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.news.php
- > /wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.main_actors.php
- 51× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/who-owns-your-country/db_table.php:17
- > PHP Notice
Trying to get property 'link' of non-object in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.random_related_post.php on line 2
- > PHP Notice
Undefined variable: owner_data in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.main_actors.php on line 3
- > PHP Notice
Undefined variable: owner_data in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.main_actors.php on line 6
- > PHP Notice
Undefined variable: owner_data in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.main_actors.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function whoowns_set_loop_of_related_articles() in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.related_posts.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.news.php:11
- > PHP Notice
Trying to get property 'random_related_post' of non-object in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.random_related_post.php on line 2
- > PHP Notice
Trying to get property 'random_related_post' of non-object in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.random_related_post.php on line 2
- > PHP Notice
Undefined variable: owner_data in wp-content/plugins/who-owns-your-country/theme-files/layouts/single-whoowns_owner.factsheet.random_related_post.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=whoowns_geo&post_type=whoowns_owner
- > Network (severe)
wp-content/themes/twentytwentyone/favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== who-owns-your-country ===
) - Screenshots: Add descriptions for screenshots #2, #3, #4 in who-owns-your-country/assets to your readme.txt
who-owns-your-country/whoowns.php 92% from 13 tests
"Who owns Your Country?" version 0.94's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("who-owns-your-country.php" instead of "whoowns.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected22,011 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 4,393 | 2,184 | 15,206 |
PHP | 18 | 445 | 270 | 3,316 |
CSS | 4 | 45 | 67 | 1,663 |
PO File | 5 | 536 | 643 | 1,153 |
SVG | 2 | 1 | 1 | 597 |
Markdown | 1 | 38 | 0 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 123 | |
▷ Named functions | 123 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
130 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/private-enterprise_16.png | 0.37KB | 0.24KB | ▼ 36.41% |
images/colorUltController_32.png | 0.81KB | 0.34KB | ▼ 57.54% |
images/stateRefSel_16.png | 1.87KB | 0.92KB | ▼ 50.52% |
images/icon-person2.png | 5.22KB | 2.01KB | ▼ 61.49% |
images/bckp/person_24.png | 0.75KB | 0.47KB | ▼ 37.40% |