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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.78ms] Passed 4 tests
Server-side resources used by GST for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.47 ▲0.17 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.68 ▲3.16 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.64 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.63 ▼7.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.85 ▲1.40 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GST for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.29 ▲0.02 | 1.83 ▲0.14 | 40.36 ▼2.13 |
Dashboard /wp-admin | 2,215 ▲35 | 5.58 ▼0.07 | 84.45 ▼5.30 | 43.36 ▲1.46 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.03 ▲0.03 | 37.56 ▲2.63 | 34.18 ▼5.90 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.21 ▲0.11 | 677.79 ▲55.87 | 55.39 ▲4.20 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.29 ▲0.11 | 105.37 ▲0.60 | 48.42 ▲1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gst-for-woocommerce/inc/tmd-ajax.php:7
- > PHP Fatal error
Uncaught Error: Class 'tmd_gst_invoice' not found in wp-content/plugins/gst-for-woocommerce/classes/class-tmd-gst-data.php:8
- > PHP Fatal error
Uncaught Error: Class 'Tmd_Gst_Data' not found in wp-content/plugins/gst-for-woocommerce/admin/templates/tmd-gst-report.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: gst woocommerce, woo, woocommerce, gst for woocommerce, tmd...
gst-for-woocommerce/tmd-gst-main.php 85% from 13 tests
The principal PHP file in "GST for WooCommerce" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gst-for-woocommerce.php" instead of "tmd-gst-main.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected11,111 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 211 | 604 | 7,825 |
PHP | 10 | 820 | 358 | 2,050 |
CSS | 4 | 46 | 61 | 1,236 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 81.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 7.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_222222_256x240.png | 3.61KB | 4.11KB | 0.00% |
assets/css/images/ui-icons_454545_256x240.png | 3.61KB | 4.11KB | 0.00% |
assets/css/images/ui-icons_cd0a0a_256x240.png | 3.68KB | 4.17KB | 0.00% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/css/images/ui-icons_888888_256x240.png | 3.68KB | 4.18KB | 0.00% |