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.07MB] [CPU: ▼4.33ms] Passed 4 tests
Server-side resources used by Xolo Websites
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.84 ▲0.83 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.56 ▲2.64 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.01 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 79.69 ▼18.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.84 ▲2.28 |
Xolo Websites /wp-admin/themes.php?page=xolo-websites | 3.37 | 31.29 |
Server storage [IO: ▲0.66MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Xolo Websites
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.64 ▼1.11 | 1.71 ▲0.03 | 42.90 ▼1.80 |
Dashboard /wp-admin | 2,231 ▲43 | 5.98 ▲1.05 | 99.17 ▼6.43 | 41.65 ▲3.19 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.05 ▲0.04 | 35.17 ▼6.87 | 36.25 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.96 ▲4.46 | 698.62 ▲34.58 | 58.71 ▲4.43 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.26 ▲0.10 | 111.62 ▲11.55 | 48.29 ▲6.23 |
Xolo Websites /wp-admin/themes.php?page=xolo-websites | 1,038 | 2.41 | 40.73 | 69.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/xolo-websites/xolo-websites.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/xolo-websites/inc/WXRImporter.php:12
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/xolo-websites/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/xolo-websites/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/xolo-websites/inc/WPCLICommands.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/xolo-websites/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/xolo-websites/inc/CustomizerOption.php:14
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLoggerCLI' not found in wp-content/plugins/xolo-websites/inc/Logger.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function XOLO_WEBS\\add_action() in wp-content/plugins/xolo-websites/inc/classes/xolo-websites-notices.php:56
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/xolo-websites/inc/classes/xolo-websites-page.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: settings, elementor, demo, xolo websites, import
xolo-websites/xolo-websites.php Passed 13 tests
"Xolo Websites" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
34 characters long description:
Import Xolo Websites Demo content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected9,246 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,219 | 2,165 | 4,268 |
XML | 1 | 29 | 77 | 2,788 |
CSS | 2 | 285 | 72 | 1,648 |
JavaScript | 3 | 96 | 120 | 439 |
JSON | 2 | 0 | 0 | 80 |
Markdown | 1 | 13 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 203 | |
▷ Static methods | 39 | 19.21% |
▷ Public methods | 139 | 68.47% |
▷ Protected methods | 37 | 18.23% |
▷ Private methods | 27 | 13.30% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 8.68KB | 5.31KB | ▼ 38.78% |
assets/images/logo-1x1.png | 0.81KB | 0.89KB | 0.00% |