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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 40.76 ▲17.08 |
Dashboard /wp-admin | 3.09 ▲0.04 | 42.06 ▼2.70 |
Posts /wp-admin/edit.php | 3.15 ▲0.03 | 45.32 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 85.14 ▼709.88 |
Media Library /wp-admin/upload.php | 3.04 ▲0.02 | 34.74 ▼6.23 |
Tixys /wp-admin/options-general.php?page=tixys/adminpage.php | 3.01 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.94 ▲0.40 | 11.46 ▲1.27 | 47.30 ▲1.37 |
Dashboard /wp-admin | 2,975 ▲44 | 5.98 ▼0.05 | 152.28 ▲10.03 | 104.10 ▼7.04 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▲0.00 | 65.76 ▲2.16 | 97.59 ▲3.65 |
Add New Post /wp-admin/post-new.php | 1,875 ▲3 | 19.13 ▼0.02 | 379.40 ▼13.26 | 112.10 ▼0.36 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.03 ▲0.03 | 161.18 ▲2.80 | 119.95 ▼8.69 |
Tixys /wp-admin/options-general.php?page=tixys/adminpage.php | 1,129 | 2.05 | 57.07 | 74.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 285 | 250 | 947 |
PHP | 5 | 84 | 12 | 388 |
PO File | 1 | 19 | 20 | 48 |
Bourne Shell | 1 | 6 | 0 | 17 |
CSS | 2 | 4 | 1 | 11 |
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 code | 0.67 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 9 | 52.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 47.06% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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