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.16MB] [CPU: ▼2.35ms] Passed 4 tests
A check of server-side resources used by Cost Calculator by AZEXO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.24 ▲1.59 |
Dashboard /wp-admin | 3.46 ▲0.16 | 44.66 ▲1.85 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.99 ▲5.44 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.24 ▼16.66 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.73 ▲3.84 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 3.43 | 34.90 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 3.44 | 43.48 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
azh-content-settings |
theysaidso_admin_options |
widget_theysaidso_widget |
azh-get-content-scripts |
can_compress_scripts |
widget_recent-posts |
azh-library |
widget_recent-comments |
azh-all-settings |
Browser metrics Passed 4 tests
A check of browser resources used by Cost Calculator by AZEXO
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 14.46 ▲0.11 | 2.24 ▲0.74 | 39.45 ▲2.93 |
Dashboard /wp-admin | 2,238 ▲60 | 5.61 ▼0.02 | 91.03 ▼5.17 | 43.17 ▲6.61 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.04 ▲0.05 | 38.17 ▲1.33 | 33.86 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.52 ▲0.39 | 663.52 ▲40.45 | 44.72 ▼2.94 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.21 ▲0.02 | 96.60 ▲0.47 | 45.39 ▲5.62 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 1,149 | 1.97 | 32.11 | 34.18 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 1,953 | 2.73 | 51.76 | 66.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- azh-content-settings
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- azh-get-content-scripts
- azh-library
- azh-all-settings
- db_upgraded
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cost-calculator-by-azexo/azh_forms.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cost-calculator-by-azexo/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
cost-calculator-by-azexo/azh_forms.php 85% from 13 tests
The entry point to "Cost Calculator by AZEXO" version 1.27.20 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("cost-calculator-by-azexo.php" instead of "azh_forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,212 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 120 | 23 | 3,029 |
PO File | 1 | 329 | 342 | 751 |
LESS | 4 | 69 | 7 | 617 |
PHP | 2 | 33 | 8 | 503 |
HTML | 18 | 9 | 0 | 132 |
JSON | 2 | 0 | 0 | 119 |
CSS | 2 | 11 | 0 | 61 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
azh/forms/number-i-d.png | 2.19KB | 2.11KB | ▼ 3.52% |
azh/forms/geolocation.png | 4.77KB | 4.79KB | 0.00% |
azh/forms/checkboxes-images.png | 2.03KB | 1.27KB | ▼ 37.27% |
removed/total-amount.png | 2.97KB | 2.08KB | ▼ 29.84% |
azh/forms/radio-color-fan.png | 0.79KB | 0.46KB | ▼ 40.99% |