Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼0.01ms] Passed 4 tests
Server-side resources used by Calculator Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 42.56 ▲0.92 |
Dashboard /wp-admin | 3.66 ▲0.35 | 49.88 ▼1.86 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 52.70 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 93.94 ▲0.29 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 35.78 ▲0.62 |
All Calculators /wp-admin/admin.php?page=calchub | 3.49 | 35.36 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_calculator_builder |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
calculator_builder_data |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Calculator Builder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲63 | 14.20 ▼0.15 | 1.79 ▼0.04 | 44.81 ▼0.94 |
Dashboard /wp-admin | 2,230 ▲53 | 5.58 ▼0.02 | 92.52 ▼8.10 | 42.41 ▼1.58 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.98 ▼0.03 | 40.38 ▲0.37 | 35.72 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,554 ▼125 | 23.28 ▲1.57 | 602.25 ▼103.98 | 55.76 ▲3.25 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.16 ▼0.03 | 96.45 ▲0.48 | 40.60 ▼1.01 |
All Calculators /wp-admin/admin.php?page=calchub | 1,087 | 2.02 | 27.00 | 44.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_calculator_builder
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- calculator_builder_data
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Admin - calculators list), #2 (Admin - add fields to the calculator form), #3 (Admin - calculator builder live preview), #4 (Admin - add the formula for calculator), #5 (Frontend - calculator on frontend)
calculator-builder/calculator-builder.php 85% from 13 tests
Analyzing the main PHP file in "Calculator Builder" version 1.5.5
Please make the necessary changes and fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
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 plugin22,106 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 3,705 | 70 | 17,027 |
PHP | 21 | 347 | 657 | 2,534 |
JavaScript | 6 | 383 | 27 | 2,048 |
Sass | 4 | 80 | 0 | 399 |
Markdown | 1 | 29 | 0 | 82 |
SVG | 1 | 4 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.36 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 103 | |
▷ Static methods | 1 | 0.97% |
▷ Public methods | 62 | 60.19% |
▷ Protected methods | 2 | 1.94% |
▷ Private methods | 39 | 37.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 6 | 35.29% |
▷ Class constants | 11 | 64.71% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.55MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 74.55KB | 51.89KB | ▼ 30.39% |
screenshot-5.png | 61.23KB | 32.97KB | ▼ 46.15% |
assets/img/calchub-logo.png | 8.53KB | 9.98KB | 0.00% |
screenshot-2.png | 108.30KB | 49.59KB | ▼ 54.21% |
screenshot-1.png | 135.70KB | 71.02KB | ▼ 47.66% |