84% xolo-addon

Code Review | Xolo Addon

WordPress plugin Xolo Addon scored84%from 54 tests.

About plugin

  • Plugin page: xolo-addon
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 6
  • Update frequency: every 39.7 days
  • Top authors: xolosoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /740 total downloads

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.00MB] [CPU: ▼9.20ms] Passed 4 tests

An overview of server-side resources used by Xolo Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.06 ▼8.23
Dashboard /wp-admin3.31 ▼0.0346.32 ▼18.05
Posts /wp-admin/edit.php3.36 ▲0.0143.94 ▼5.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.85 ▼5.19
Media Library /wp-admin/upload.php3.23 ▲0.0034.36 ▲0.09

Server storage [IO: ▲7.82MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Xolo Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.321.70 ▼0.2238.28 ▼4.93
Dashboard /wp-admin2,198 ▲205.63 ▼0.0889.68 ▼23.5144.02 ▼2.22
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0239.61 ▼1.8736.42 ▲2.12
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▲0.02643.76 ▼8.6752.94 ▼4.78
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0297.58 ▲2.5141.62 ▲0.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/xolo-addon/inc/xolo/elementor/class.xolo-icon-manager.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xolo-addon/inc/erapress/erapress-feature-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xolo-addon/inc/erapress/widget-recent-posts.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/xolo-addon/inc/erapress/updater/theme-updater.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xolo-addon/inc/erapress/widget-download-filters.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/xolo-addon/inc/erapress/elementor/class.xolo-icon-manager.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xolo-addon/inc/xolo/widget-download-filters.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xolo-addon/inc/erapress/demo-import/index.php:124
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xolo-addon/inc/xolo/widget-recent-posts.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/xolo-addon/inc/erapress/class-wp-bootstrap-navwalker.php:27

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: settings, elementor, demo, xolo addon, import

xolo-addon/xolo-addon.php 92% from 13 tests

"Xolo Addon" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin148,255 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
XML98221,128120,543
CSS91,31819213,881
PHP341,82165010,941
JavaScript56183732,881
JSON9009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.22
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods143
▷ Static methods96.29%
▷ Public methods10774.83%
▷ Protected methods2618.18%
▷ Private methods106.99%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/erapress/updater/screenshot.png1.37KB0.45KB▼ 67.28%