Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.48ms] Passed 4 tests
This is a short check of server-side resources used by Owids - 10+ Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.66 ▼3.99 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.50 ▼1.70 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.41 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.49 ▼17.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.38 ▼2.85 |
Owids /wp-admin/options-general.php?page=owids | 3.25 | 39.73 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Owids - 10+ Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.64 ▼0.73 | 1.72 ▼1.13 | 39.73 ▼8.76 |
Dashboard /wp-admin | 2,210 ▲22 | 4.81 ▼1.08 | 103.44 ▼13.28 | 39.35 ▼4.74 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.06 | 33.95 ▼2.49 | 32.25 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.25 ▼0.19 | 655.12 ▼6.19 | 50.86 ▼4.99 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▼0.01 | 92.58 ▼17.72 | 41.97 ▼0.06 |
Owids /wp-admin/options-general.php?page=owids | 848 | 2.39 | 36.81 | 43.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/owids/admin/partials/owids-admin-display.php
- > /wp-content/plugins/owids/public/partials/owids-public-snippet.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/owids/public/partials/owids-public-snippet.php on line 20
- > PHP Warning
Use of undefined constant OWIDS_SDK_URL - assumed 'OWIDS_SDK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/owids/public/partials/owids-public-snippet.php on line 20
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
owids/owids.php Passed 13 tests
The principal PHP file in "Owids - 10+ Widgets" v. 1.0.2 is loaded by WordPress automatically on each request
126 characters long description:
Powerful widgets that help grow your business, optimize your website conversion rates, increase visitor engagement in no time.
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
There were no executable files found in this plugin11,187 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,975 | 2,021 | 10,950 |
PHP | 14 | 139 | 552 | 235 |
CSS | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin