84% weaverx-theme-support

Code Review | Weaver Xtreme Theme Support

WordPress plugin Weaver Xtreme Theme Support scored84%from 54 tests.

About plugin

  • Plugin page: weaverx-theme-sup...
  • Plugin version: 6.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2014
  • Latest release: Sep 1, 2023
  • Number of updates: 66
  • Update frequency: every 50.1 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10,000+ active /354,356 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.94ms] Passed 4 tests

A check of server-side resources used by Weaver Xtreme Theme Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0339.85 ▼4.99
Dashboard /wp-admin3.59 ▲0.0352.60 ▼2.72
Posts /wp-admin/edit.php3.71 ▲0.0351.58 ▼4.42
Add New Post /wp-admin/post-new.php6.18 ▲0.0382.91 ▼15.61
Media Library /wp-admin/upload.php3.52 ▲0.0340.92 ▲1.61

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Weaver Xtreme Theme Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.26 ▼0.501.89 ▲0.1642.85 ▲2.16
Dashboard /wp-admin2,195 ▲185.55 ▼0.1785.64 ▼4.0640.17 ▼13.59
Posts /wp-admin/edit.php2,097 ▼02.01 ▼0.0335.94 ▼2.2135.67 ▼1.45
Add New Post /wp-admin/post-new.php1,545 ▼123.24 ▲0.11664.52 ▼45.0154.07 ▼0.44
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0499.51 ▼3.2746.15 ▼1.09

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/weaverx-theme-support/weaverx-ts.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weaverx-theme-support/includes/wvrx-ts-widgets.php:7
    • > PHP Parse error
      syntax error, unexpected '|', expecting '{' in wp-content/plugins/weaverx-theme-support/includes/wvrx-ts-editor-style.php on line 114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaverx-theme-support/includes/wvrx-ts-shortcodes.php:39
    • > PHP Warning
      Use of undefined constant WEAVERX_VERSION - assumed 'WEAVERX_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/weaverx-theme-support/admin/admin-lib-ts.php on line 889
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/weaverx-theme-support/includes/wvrx-ts-runtime-lib.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/weaverx-theme-support/admin/add-weaverx-sapi-options.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
3 plugin tags: widgets, shortcodes, weaver xtreme theme

weaverx-theme-support/weaverx-ts.php 85% from 13 tests

The primary PHP file in "Weaver Xtreme Theme Support" version 6.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("weaverx-theme-support.php" instead of "weaverx-ts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,926 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,2963707,234
HTML1580684
CSS3028

PHP code Passed 2 tests

A brief analysis 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.32
Average class complexity11.60
▷ Minimum class complexity4.00
▷ Maximum class complexity22.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions135
▷ Named functions135100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin