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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.73ms] Passed 4 tests
This is a short check of server-side resources used by uCalc
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.82 ▼0.72 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.31 ▼5.30 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.67 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 84.75 ▼23.75 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 34.54 ▼1.16 |
uCalc /wp-admin/options-general.php?page=uCalc | 3.30 | 36.18 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_ucalc_id_base |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
uCalc: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.70 ▲0.39 | 2.01 ▲0.14 | 46.25 ▼0.48 |
Dashboard /wp-admin | 2,216 ▲36 | 5.58 ▼0.05 | 100.18 ▲8.40 | 44.34 ▼2.84 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.02 ▼0.04 | 37.09 ▼0.80 | 34.14 ▼2.08 |
Add New Post /wp-admin/post-new.php | 6,216 ▲4,685 | 19.19 ▼4.04 | 891.16 ▲209.40 | 36.31 ▼26.96 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.22 ▼0.17 | 98.32 ▼14.03 | 43.17 ▼7.75 |
uCalc /wp-admin/options-general.php?page=uCalc | 965 | 2.36 | 34.97 | 27.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_ucalc_id_base
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ucalc/ucalc.php:20
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: form-builder, calculator, form, forms, contact-form
ucalc/ucalc.php 92% from 13 tests
Analyzing the main PHP file in "uCalc" version 2.0.1
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
No dangerous file extensions were detected1,456 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 84 | 54 | 533 |
CSS | 7 | 66 | 15 | 454 |
JavaScript | 5 | 43 | 14 | 401 |
PO File | 1 | 29 | 31 | 68 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.06MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 40.88KB | 11.70KB | ▼ 71.38% |
assets/icon-256x256.png | 34.39KB | 11.20KB | ▼ 67.43% |
assets/screenshot-1.png | 190.08KB | 52.41KB | ▼ 72.43% |
assets/banner-1544x500.png | 55.43KB | 27.24KB | ▼ 50.86% |
assets/icon-128x128.png | 22.01KB | 4.46KB | ▼ 79.71% |