84% tixys

Code Review | Tixys Widget

WordPress plugin Tixys Widget scored 84% from 54 tests.

About plugin

  • Plugin page: tixys
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-4.3.1
  • WordPress version: 5.8.1
  • First release: Sep 24, 2013
  • Latest release: Oct 8, 2015
  • Number of updates: 41
  • Update frequency: every 18.2 days
  • Top authors: mastermind (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Tixys Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1540.76 ▲17.08
Dashboard /wp-admin3.09 ▲0.0442.06 ▼2.70
Posts /wp-admin/edit.php3.15 ▲0.0345.32 ▼1.58
Add New Post /wp-admin/post-new.php5.46 ▲0.0285.14 ▼709.88
Media Library /wp-admin/upload.php3.04 ▲0.0234.74 ▼6.23
Tixys /wp-admin/options-general.php?page=tixys/adminpage.php3.0128.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options
tixys_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tixys Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.94 ▲0.4011.46 ▲1.2747.30 ▲1.37
Dashboard /wp-admin2,975 ▲445.98 ▼0.05152.28 ▲10.03104.10 ▼7.04
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0065.76 ▲2.1697.59 ▲3.65
Add New Post /wp-admin/post-new.php1,875 ▲319.13 ▼0.02379.40 ▼13.26112.10 ▼0.36
Media Library /wp-admin/upload.php1,815 ▲115.03 ▲0.03161.18 ▲2.80119.95 ▼8.69
Tixys /wp-admin/options-general.php?page=tixys/adminpage.php1,1292.0557.0774.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • tixys_options

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tixys/form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tixys/tixys.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tixys/adminpage.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === tixys === )
You can take inspiration from this readme.txt

tixys/tixys.php Passed 13 tests

Analyzing the main PHP file in "Tixys Widget" version 0.2
56 characters long description:
This plugin embeds a Tixys search widget into a WP page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,411 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4285250947
PHP58412388
PO File1192048
Bourne Shell16017
CSS24111

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.67
Average class complexity28.00
▷ Minimum class complexity27.00
▷ Maximum class complexity29.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods952.94%
▷ Protected methods00.00%
▷ Private methods847.06%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin