Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/clearblue-ovulation-calculator/class/plugin.php+28
Use of undefined constant CBDDC_VERSION - assumed 'CBDDC_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.36ms] Passed 4 tests
An overview of server-side resources used by Clearblue® Ovulation Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 8.19 ▼31.20 |
Dashboard /wp-admin | 2.05 ▼1.26 | 13.28 ▼35.35 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 10.52 ▼36.29 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 12.78 ▼90.58 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 8.51 ▼23.94 |
Ovulation Calculator /wp-admin/tools.php?page=clearblue-ovulation-calculator | 2.05 | 10.52 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
cbddc-version |
widget_clearblue-ovulation-calculator-widget |
theysaidso_admin_options |
cbddc-show-credits |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Clearblue® Ovulation Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲169 | 13.88 ▼0.49 | 5.85 ▲4.21 | 38.45 ▼16.51 |
Dashboard /wp-admin | 2,219 ▲37 | 4.97 ▲0.08 | 114.32 ▲10.57 | 41.03 ▼7.10 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.22 ▲0.17 | 39.49 ▼0.27 | 40.96 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.40 ▲5.07 | 679.13 ▲79.05 | 53.39 ▲2.13 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.33 ▲0.12 | 98.78 ▼3.80 | 42.52 ▼3.30 |
Ovulation Calculator /wp-admin/tools.php?page=clearblue-ovulation-calculator | 1,818 | 2.59 | 68.51 | 47.43 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/clearblue-ovulation-calculator/class/plugin.php+28
Use of undefined constant CBDDC_VERSION - assumed 'CBDDC_VERSION' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_clearblue-ovulation-calculator-widget
- cbddc-version
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- cbddc-show-credits
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=clearblue-ovulation-calculator
- > Warning in wp-content/plugins/clearblue-ovulation-calculator/class/plugin.php+28
Use of undefined constant CBDDC_VERSION - assumed 'CBDDC_VERSION' (this will throw an Error in a future version of PHP)
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 items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'CbOvulationCalculator_Data' not found in wp-content/plugins/clearblue-ovulation-calculator/inc/tool.php:5
- > PHP Fatal error
Uncaught Error: Class 'CbOvulationCalculator_Data' not found in wp-content/plugins/clearblue-ovulation-calculator/inc/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
clearblue-ovulation-calculator/clearblue-ovulation-calculator.php Passed 13 tests
The main file in "Clearblue® Ovulation Calculator" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
An ovulation calculator estimates how likely a woman is to release an egg on a particular day in her menstrual cycle.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,646 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 132 | 32 | 960 |
JSON | 15 | 0 | 0 | 833 |
PHP | 8 | 120 | 236 | 477 |
JavaScript | 5 | 95 | 113 | 364 |
SVG | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 12 | 54.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin