Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼151.88ms] Passed 4 tests
Analyzing server-side resources used by Tabut Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 24.49 ▲9.49 |
Dashboard /wp-admin | 3.09 ▲0.02 | 38.77 ▲1.08 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 30.80 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.13 | 69.25 ▼607.47 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 22.13 ▼1.19 |
All Items /wp-admin/edit.php?post_type=portfolio | 3.08 | 22.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio | 3.19 | 24.00 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio | 3.02 | 25.21 |
Add New /wp-admin/post-new.php?post_type=portfolio | 5.56 | 66.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
Checking browser requirements for Tabut Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,880 ▲279 | 16.11 ▲0.44 | 8.16 ▲2.87 | 76.19 ▲0.63 |
Dashboard /wp-admin | 2,980 ▲81 | 6.10 ▼0.08 | 114.92 ▼19.63 | 161.84 ▼11.03 |
Posts /wp-admin/edit.php | 2,791 ▲48 | 3.25 ▲0.02 | 61.26 ▼1.82 | 137.85 ▼1.29 |
Add New Post /wp-admin/post-new.php | 3,737 ▼71 | 18.67 ▼0.14 | 432.06 ▼20.32 | 159.32 ▼17.47 |
Media Library /wp-admin/upload.php | 1,800 ▲48 | 5.55 ▲0.03 | 159.98 ▲11.25 | 188.03 ▼6.92 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,519 | 3.06 | 58.73 | 121.15 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio | 1,892 | 2.77 | 56.91 | 124.80 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio | 1,976 | 2.78 | 57.25 | 138.71 |
Add New /wp-admin/post-new.php?post_type=portfolio | 6,152 | 20.16 | 409.82 | 186.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- category_children
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tabut-companion/public/partials/tabut-companion-public-display.php
- > /wp-content/plugins/tabut-companion/admin/partials/tabut-companion-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabut-companion/admin/partials/custom-post-type/portfolio.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tabut-companion/admin/class-tabut-companion-admin.php:105
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Console-api (warning) in wp-includes/js/dist/blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156+1:40463
Block validation: Expected attribute `%s` of value `%s`, saw `%s`." "style" "height:100px" "height:5px
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Console-api (severe) in wp-includes/js/dist/blocks.min.js?ver=7ed7fe32dad771c4e0af4f56539ff156+1:40463
Block validation: Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s" "core/spacer" Object "\u003Cdiv style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\">\u003C/div>" "\u003Cdiv style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\">\u003C/div>
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== tabut-companion ===
)
tabut-companion/tabut-companion.php 92% from 13 tests
The entry point to "Tabut Companion" version 2.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected317 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 131 | 560 | 311 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 code | 0.18 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected