10% weblizar-companion

Code Review | IS-theme-companion

WordPress plugin IS-theme-companion scored10%from 54 tests.

About plugin

  • Plugin page: weblizar-companion
  • Plugin version: 1.53
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Sep 30, 2023
  • Number of updates: 56
  • Update frequency: every 31.5 days
  • Top authors: weblizar (69.64%)vibhorp (32.14%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /60,409 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.46ms] Passed 4 tests

This is a short check of server-side resources used by IS-theme-companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.31 ▲0.12
Dashboard /wp-admin3.39 ▲0.0945.62 ▼4.11
Posts /wp-admin/edit.php3.51 ▲0.1550.56 ▲6.83
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.02 ▼2.93
Media Library /wp-admin/upload.php3.31 ▲0.0937.12 ▲5.10

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 312 new files
Database: no new tables, 8 new options
New WordPress options
nineteen_theme_front_page
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
free_theme_data
widget_recent-posts

Browser metrics Passed 4 tests

IS-theme-companion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.34 ▼1.062.05 ▲0.4734.80 ▼2.56
Dashboard /wp-admin2,206 ▲155.91 ▲1.0297.06 ▼5.4340.11 ▼2.54
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0439.46 ▲1.9437.68 ▲2.27
Add New Post /wp-admin/post-new.php1,542 ▲1423.29 ▼0.04623.47 ▼50.0752.37 ▼14.84
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0297.67 ▼0.5242.31 ▼2.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • free_theme_data
    • can_compress_scripts
    • widget_theysaidso_widget
    • nineteen_theme_front_page
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/weblizar-companion/public/inc/nineteen/client-section.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: builder, drag, drop

weblizar-companion/IS-theme-companion.php 85% from 13 tests

Analyzing the main PHP file in "IS-theme-companion" version 1.53
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("weblizar-companion.php" instead of "IS-theme-companion.php")

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
No dangerous file extensions were detected59,353 lines of code in 284 files:
LanguageFilesBlank linesComment linesLines of code
PHP2482,47194118,423
CSS122,9902717,894
JavaScript2076424513,342
SVG3009,546
PO File16685148

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.11
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes247
▷ Abstract classes00.00%
▷ Concrete classes247100.00%
▷ Final classes10.40%
Methods363
▷ Static methods18450.69%
▷ Public methods36099.17%
▷ Protected methods00.00%
▷ Private methods30.83%
Functions19
▷ Named functions19100.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
There were not PNG files found in your plugin