Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.85ms] Passed 4 tests
Server-side resources used by Xolo Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 40.60 ▲1.53 |
Dashboard /wp-admin | 3.50 ▲0.16 | 52.72 ▼14.25 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.29 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 85.87 ▼11.44 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.46 ▼0.48 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_social_widget |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_xolo_contact_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Xolo Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 13.82 ▼0.57 | 1.97 ▲0.25 | 41.31 ▼6.36 |
Dashboard /wp-admin | 2,227 ▲36 | 5.19 ▲0.15 | 110.31 ▲8.29 | 41.11 ▼0.60 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.37 ▲0.32 | 40.65 ▲3.57 | 33.70 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 23.62 ▲0.63 | 651.20 ▼4.74 | 36.32 ▼22.95 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.39 ▲0.13 | 99.32 ▲3.32 | 40.72 ▼1.56 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_social_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_xolo_contact_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant XOLO_WIDGETS_DIR - assumed 'XOLO_WIDGETS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/xolo-widgets/classes/class-xolo-widgets.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xolo-widgets/classes/widgets/class-social-widget.php:4
- > PHP Warning
require_once(XOLO_WIDGETS_DIRclasses/widgets/class-social-icons.php): failed to open stream: No such file or directory in wp-content/plugins/xolo-widgets/classes/class-xolo-widgets.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xolo-widgets/classes/widgets/class-widget-contact.php:3
- > PHP Fatal error
require_once(): Failed opening required 'XOLO_WIDGETS_DIRclasses/widgets/class-social-icons.php' (include_path='.:/usr/share/php') in wp-content/plugins/xolo-widgets/classes/class-xolo-widgets.php on line 42
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: social widget, contact widget
xolo-widgets/xolo-widgets.php Passed 13 tests
The entry point to "Xolo Widgets" version 1.0 is a PHP file that has certain tags in its header comment area
110 characters long description:
Xolo Widget gives you a collection of widgets in fastest way to add more widgets into your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,311 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 67 | 39 | 2,569 |
PHP | 5 | 92 | 56 | 976 |
SVG | 2 | 0 | 0 | 704 |
JavaScript | 2 | 16 | 15 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin