79% xolo-websites

Code Review | Xolo Websites

WordPress plugin Xolo Websites scored79%from 54 tests.

About plugin

  • Plugin page: xolo-websites
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 19
  • Update frequency: every 54.9 days
  • Top authors: xolosoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /11,331 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.84 ▲0.83
Dashboard /wp-admin3.38 ▲0.0850.56 ▲2.64
Posts /wp-admin/edit.php3.49 ▲0.1345.01 ▼1.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0979.69 ▼18.81
Media Library /wp-admin/upload.php3.30 ▲0.0737.84 ▲2.28
Xolo Websites /wp-admin/themes.php?page=xolo-websites3.3731.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.64 ▼1.111.71 ▲0.0342.90 ▼1.80
Dashboard /wp-admin2,231 ▲435.98 ▲1.0599.17 ▼6.4341.65 ▲3.19
Posts /wp-admin/edit.php2,114 ▲252.05 ▲0.0435.17 ▼6.8736.25 ▲0.33
Add New Post /wp-admin/post-new.php1,533 ▲522.96 ▲4.46698.62 ▲34.5858.71 ▲4.43
Media Library /wp-admin/upload.php1,413 ▲254.26 ▲0.10111.62 ▲11.5548.29 ▲6.23
Xolo Websites /wp-admin/themes.php?page=xolo-websites1,0382.4140.7369.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP281,2192,1654,268
XML129772,788
CSS2285721,648
JavaScript396120439
JSON20080
Markdown113023

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 code0.40
Average class complexity30.36
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods203
▷ Static methods3919.21%
▷ Public methods13968.47%
▷ Protected methods3718.23%
▷ Private methods2713.30%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
assets/images/logo.png8.68KB5.31KB▼ 38.78%
assets/images/logo-1x1.png0.81KB0.89KB0.00%