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.03MB] [CPU: ▼8.15ms] Passed 4 tests
Analyzing server-side resources used by Custom PC Builder Lite for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.88 ▼8.58 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.68 ▲2.67 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.30 ▼7.60 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.36 ▼18.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.83 ▲2.16 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Custom PC Builder Lite for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.09 | 1.61 ▼0.64 | 38.50 ▼14.25 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▼0.05 | 98.17 ▼7.66 | 39.77 ▼3.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 39.48 ▲1.09 | 35.31 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,532 ▼10 | 22.22 ▲3.83 | 675.45 ▲70.87 | 59.38 ▼4.07 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.07 | 92.50 ▼11.22 | 40.64 ▼0.47 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/helper.php
- > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/admin-ajax-handle.php
- > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/index.php
- > /wp-content/plugins/custom-pc-builder-lite-for-woocommerce/inc/frontend-ajax-handle.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #3 in custom-pc-builder-lite-for-woocommerce/assets to your readme.txt
custom-pc-builder-lite-for-woocommerce/index.php 77% from 13 tests
Analyzing the main PHP file in "Custom PC Builder Lite for WooCommerce" version 1.0.1
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.2")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-pc-builder-lite-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,736 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 254 | 1,240 |
Sass | 2 | 22 | 0 | 955 |
PO File | 1 | 84 | 88 | 209 |
SVG | 6 | 0 | 4 | 166 |
JSON | 3 | 0 | 0 | 130 |
Markdown | 1 | 7 | 0 | 30 |
JavaScript | 3 | 0 | 1 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 13 | 25.49% |
▷ Public methods | 50 | 98.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.96% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/custom-pc-builder-pro.png | 283.44KB | 87.67KB | ▼ 69.07% |