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.61MB] [CPU: ▼20.92ms] Passed 4 tests
Analyzing server-side resources used by Step by step Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 35.35 ▼4.02 |
Dashboard /wp-admin | 3.40 ▲0.06 | 42.75 ▼19.14 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 42.91 ▲0.11 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.70 | 34.45 ▼60.64 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.36 ▲4.63 |
Add new /wp-admin/post-new.php?post_type=steptotal | 3.18 | 38.62 |
All Select /wp-admin/edit.php?post_type=selecttotal | 3.37 | 38.29 |
All options /wp-admin/edit.php?post_type=optiontotal | 3.37 | 34.59 |
Add new Option /wp-admin/post-new.php?post_type=optiontotal | 3.18 | 34.15 |
All steps /wp-admin/edit.php?post_type=stepstotal | 3.37 | 33.18 |
All steps /wp-admin/edit.php?post_type=steptotal | 3.37 | 35.73 |
Add new Select /wp-admin/post-new.php?post_type=selecttotal | 3.18 | 30.61 |
Add new step /wp-admin/post-new.php?post_type=stepstotal | 3.18 | 32.03 |
All Invoices for Calculators /wp-admin/edit.php?post_type=invoicetotal | 3.37 | 33.10 |
Add new /wp-admin/post-new.php?post_type=invoicetotal | 3.18 | 30.86 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Step by step Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 13.32 ▼1.07 | 1.66 ▼0.19 | 41.24 ▼3.63 |
Dashboard /wp-admin | 2,344 ▲153 | 4.89 ▲0.02 | 105.50 ▼11.32 | 41.46 ▼5.88 |
Posts /wp-admin/edit.php | 2,224 ▲138 | 2.05 ▲0.01 | 35.85 ▼2.70 | 34.35 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,629 ▲115 | 17.67 ▲0.16 | 642.80 ▼36.28 | 62.83 ▲11.24 |
Media Library /wp-admin/upload.php | 1,523 ▲138 | 4.23 ▲0.01 | 97.68 ▼2.14 | 43.98 ▼5.76 |
Add new /wp-admin/post-new.php?post_type=steptotal | 2,782 | 7.78 | 177.60 | 72.23 |
All Select /wp-admin/edit.php?post_type=selecttotal | 1,239 | 1.95 | 31.44 | 32.34 |
All options /wp-admin/edit.php?post_type=optiontotal | 1,239 | 1.94 | 31.80 | 31.30 |
Add new Option /wp-admin/post-new.php?post_type=optiontotal | 2,810 | 7.76 | 174.67 | 65.14 |
All steps /wp-admin/edit.php?post_type=stepstotal | 1,239 | 2.01 | 31.18 | 28.67 |
All steps /wp-admin/edit.php?post_type=steptotal | 1,239 | 1.98 | 30.98 | 30.94 |
Add new Select /wp-admin/post-new.php?post_type=selecttotal | 2,808 | 7.90 | 167.30 | 61.13 |
Add new step /wp-admin/post-new.php?post_type=stepstotal | 2,798 | 7.75 | 172.04 | 61.30 |
All Invoices for Calculators /wp-admin/edit.php?post_type=invoicetotal | 1,239 | 1.93 | 31.54 | 30.81 |
Add new /wp-admin/post-new.php?post_type=invoicetotal | 2,792 | 7.83 | 164.92 | 67.11 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 25 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=invoicetotal
- > Notice in wp-content/plugins/steptotal/index.php+701
Undefined index: extra_fields_nonce
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steptotal/index.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: calculator, product, service, commerce
steptotal/index.php 92% from 13 tests
The principal PHP file in "Step by step Calculator" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("steptotal.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,537 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 80 | 1,107 |
CSS | 1 | 59 | 11 | 272 |
PO File | 1 | 70 | 72 | 158 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin