Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.16ms] Passed 4 tests
This is a short check of server-side resources used by Awesome GST Calculator Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.69 ▼3.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.14 ▲6.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.57 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.21 ▼2.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 45.07 ▲11.76 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_wpgstcal_widget |
theysaidso_admin_options |
wpgstcal_enabled |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome GST Calculator Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲129 | 13.76 ▼0.39 | 7.64 ▲5.61 | 48.19 ▲4.63 |
Dashboard /wp-admin | 2,232 ▲23 | 4.95 ▼0.94 | 125.24 ▲17.82 | 80.10 ▲37.20 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▲0.01 | 41.18 ▲1.72 | 39.04 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,688 ▲174 | 22.39 ▲4.87 | 857.10 ▲163.35 | 78.58 ▲21.82 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.21 ▼0.03 | 139.73 ▲26.50 | 101.38 ▲54.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- wpgstcal_enabled
- widget_theysaidso_widget
- widget_wpgstcal_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
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/awesome-gst-calculator-widget/inc/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-gst-calculator-widget/inc/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/awesome-gst-calculator-widget/inc/general_functions.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Requires at least: Invalid plugin version format
awesome-gst-calculator-widget/wp-gst-calculator.php 92% from 13 tests
The entry point to "Awesome GST Calculator Widget" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-gst-calculator-widget.php" instead of "wp-gst-calculator.php")
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
No dangerous file extensions were detected363 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 29 | 26 | 259 |
JavaScript | 1 | 25 | 2 | 59 |
CSS | 1 | 1 | 1 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-20x20.png | 1.68KB | 1.07KB | ▼ 35.90% |
assets/screenshot-2.png | 39.29KB | 20.46KB | ▼ 47.93% |
assets/screenshot-3.png | 86.37KB | 43.60KB | ▼ 49.51% |
assets/screenshot-1.png | 174.18KB | 63.22KB | ▼ 63.71% |