Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.74ms] Passed 4 tests
Server-side resources used by Ovulation Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 24.38 ▼14.40 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.87 ▼6.79 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.44 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 80.37 ▼26.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.81 ▲1.59 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
ovulationcalculator-group |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Ovulation Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.74 ▼0.63 | 8.99 ▲7.25 | 39.07 ▼2.28 |
Dashboard /wp-admin | 2,233 ▲45 | 5.85 ▲0.04 | 104.42 ▼0.20 | 76.59 ▲34.50 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.04 | 39.25 ▼0.51 | 34.16 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 18.42 ▼4.71 | 707.71 ▲74.82 | 66.09 ▲4.42 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▲0.01 | 98.78 ▲3.51 | 75.91 ▲34.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WP_Plugin_Template' not found
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ovulation-calculator/include/admin/emailtranslation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ovulation-calculator/include/admin/calendardays.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ovulation-calculator/include/admin/calendarmonth.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ovulation-calculator/include/admin/translation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ovulation-calculator/include/admin/mailchimp.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ovulation-calculator/include/oc-shortcode.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ovulation-calculator/include/admin/color.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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: fertility, ovulation, calculator, pregnancy
ovulation-calculator/ovulation-calculator.php Passed 13 tests
The entry point to "Ovulation Calculator" version 1.0.3 is a PHP file that has certain tags in its header comment area
108 characters long description:
This ovulation calculator will calculate your period, fertility and shows the next 6 months ovulation dates.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,770 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 163 | 78 | 2,007 |
PHP | 9 | 160 | 52 | 1,481 |
SVG | 12 | 0 | 6 | 182 |
JavaScript | 5 | 25 | 27 | 100 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 13 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
include/img/period.png | 0.66KB | 0.17KB | ▼ 74.04% |
css/images/circle.png | 1.01KB | 0.49KB | ▼ 51.26% |
css/images/ui-icons_ffffff_256x240NEW.png | 7.48KB | 4.17KB | ▼ 44.21% |
include/img/right.png | 1.51KB | 0.41KB | ▼ 72.75% |