Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼13.47ms] Passed 4 tests
Analyzing server-side resources used by Clearblue® Due Date Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.61 ▼4.45 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.91 ▼12.97 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.56 ▼1.34 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 102.60 ▼35.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.49 ▲6.78 |
Due Date Calculator /wp-admin/tools.php?page=clearblue-due-date-calculator | 3.27 | 33.16 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cbddc-version |
widget_recent-comments |
widget_clearblue-due-date-calculator-widget |
db_upgraded |
cbddc-show-credits |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Clearblue® Due Date Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲158 | 13.79 ▼0.61 | 5.63 ▲3.61 | 41.63 ▼1.51 |
Dashboard /wp-admin | 2,219 ▲31 | 4.93 ▲0.03 | 101.68 ▼16.13 | 38.86 ▼5.00 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.25 ▲0.25 | 41.00 ▲0.78 | 31.70 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,525 ▲4 | 23.01 ▼0.03 | 599.85 ▼97.18 | 51.33 ▼1.29 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.37 ▲0.16 | 99.08 ▼1.55 | 40.82 ▼6.11 |
Due Date Calculator /wp-admin/tools.php?page=clearblue-due-date-calculator | 1,542 | 2.73 | 54.83 | 43.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- cbddc-version
- can_compress_scripts
- cbddc-show-credits
- widget_clearblue-due-date-calculator-widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'CbDueDateCalculator_Data' not found in wp-content/plugins/clearblue-due-date-calculator/inc/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'CbDueDateCalculator_Data' not found in wp-content/plugins/clearblue-due-date-calculator/inc/tool.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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: Please fix this invalid URI: ""
clearblue-due-date-calculator/clearblue-due-date-calculator.php 92% from 13 tests
This is the main PHP file of "Clearblue® Due Date Calculator" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,592 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 97 | 32 | 772 |
PHP | 8 | 113 | 226 | 442 |
JavaScript | 5 | 59 | 87 | 237 |
JSON | 3 | 0 | 0 | 129 |
SVG | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 21 | |
▷ Static methods | 12 | 57.14% |
▷ Public methods | 21 | 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
No PNG files were detected