Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▼0.10ms] Passed 4 tests
A check of server-side resources used by Z Companion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.53 | 40.11 ▲0.18 |
Dashboard /wp-admin | 3.82 ▲0.52 | 46.23 ▼2.00 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 50.47 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 92.91 ▲1.39 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 42.02 ▲7.75 |
Z Companion Sites /wp-admin/themes.php?page=z-companion-sites | 3.67 | 38.65 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Z Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲145 | 13.28 ▼1.24 | 1.73 ▲0.12 | 40.43 ▼0.85 |
Dashboard /wp-admin | 2,289 ▲104 | 5.85 ▲0.97 | 106.39 ▼3.23 | 82.99 ▲39.63 |
Posts /wp-admin/edit.php | 2,175 ▲107 | 2.16 ▲0.16 | 39.78 ▲2.71 | 40.58 ▲8.21 |
Add New Post /wp-admin/post-new.php | 1,659 ▲145 | 22.34 ▲4.87 | 684.71 ▼10.78 | 48.91 ▼2.72 |
Media Library /wp-admin/upload.php | 1,459 ▲71 | 4.26 ▲0.05 | 109.28 ▲6.98 | 98.97 ▲56.43 |
Z Companion Sites /wp-admin/themes.php?page=z-companion-sites | 1,128 | 1.99 | 44.65 | 41.66 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/z-companion/notify/notify-html.php
- > /wp-content/plugins/z-companion/royal-shop/customizer/repeater/icon-picker/icons.php
- > /wp-content/plugins/z-companion/import/inc/key-api/form.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: display in wp-content/plugins/z-companion/notify/notify-html.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/z-companion/royal-shop/widget/post-single-slide-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/z-companion/import/inc/key-api/form.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/z-companion/royal-shop/widget/highlight-widget.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/z-companion/royal-shop/customizer/frontpage/higlight.php:2
- > PHP Warning
Use of undefined constant Z_COMPANION_PLUGIN_DIR_URL - assumed 'Z_COMPANION_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/z-companion/notify/notify-html.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/z-companion/royal-shop/widget/product-widget-multi-slide.php:9
- > PHP Notice
Undefined variable: theme in wp-content/plugins/z-companion/notify/notify-html.php on line 4
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/z-companion/royal-shop/customizer/frontpage/higlight.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/z-companion/admin/enqueue.php:9
- > PHP Notice
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 97% 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Choose your desired demo.), #2 (Install and Activate required plugin.), #3 (Import website.), #4 (View website.)
z-companion/z-companion.php Passed 13 tests
The main PHP file in "Z Companion" ver. 1.0.13 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Z-Companion plugin is specially made for wpzita themes.This plugin boost up features in the theme.
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
Everything looks great! No dangerous files found in this plugin18,795 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 1,411 | 1,891 | 8,521 |
JavaScript | 13 | 1,003 | 1,380 | 4,263 |
CSS | 9 | 104 | 51 | 3,311 |
SVG | 2 | 1 | 0 | 2,700 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 23 | 10.55% |
▷ Public methods | 163 | 74.77% |
▷ Protected methods | 34 | 15.60% |
▷ Private methods | 21 | 9.63% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 16 | 50.00% |
▷ Class constants | 16 | 50.00% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
notify/assets/images/th-shop-mania.png | 34.78KB | 11.98KB | ▼ 65.56% |
import/assets/image/wpzita.png | 26.43KB | 7.66KB | ▼ 71.00% |
import/assets/image/zita-icon.png | 3.44KB | 0.75KB | ▼ 78.26% |
import/assets/image/siteorigin.png | 7.39KB | 4.10KB | ▼ 44.50% |
import/assets/image/elementor.png | 15.73KB | 2.95KB | ▼ 81.27% |