Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼141.15ms] Passed 4 tests
Analyzing server-side resources used by Power Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.07 ▲19.11 |
Dashboard /wp-admin | 3.19 ▲0.13 | 43.93 ▼2.96 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 47.06 ▲0.77 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 93.10 ▼567.16 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 37.48 ▲4.77 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ddev_power_calculator |
Browser metrics Passed 4 tests
Power Calculator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 15.93 ▲0.35 | 8.68 ▲0.59 | 52.19 ▼1.45 |
Dashboard /wp-admin | 2,993 ▲62 | 5.91 ▼0.03 | 144.46 ▼18.90 | 105.73 ▼13.46 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▲0.01 | 67.58 ▼1.27 | 99.49 ▲13.80 |
Add New Post /wp-admin/post-new.php | 1,696 ▲198 | 18.77 ▼0.11 | 368.10 ▼34.52 | 114.77 ▼4.15 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 4.99 ▼0.01 | 155.87 ▼13.54 | 121.40 ▼6.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 2× 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/power-calculator/inc/shortcodes/power-calculator.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/power-calculator/admin/OptionPage.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in power-calculator/assets to your readme.txt
power-calculator/ddev-power-calculator.php 69% from 13 tests
Analyzing the main PHP file in "Power Calculator" version 1.0
You should first fix the following items:
- 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
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.2")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("power-calculator.php" instead of "ddev-power-calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin11,016 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,303 | 1,488 | 10,289 |
PHP | 6 | 44 | 128 | 334 |
PO File | 3 | 126 | 126 | 305 |
CSS | 1 | 8 | 0 | 88 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ 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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 60.00% |
▷ Protected methods | 4 | 40.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin