Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲3.60MB] [CPU: ▲26.38ms] Passed 4 tests
Analyzing server-side resources used by Important Dates Dashboard Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.87 ▲3.41 | 63.21 ▲19.07 |
Dashboard /wp-admin | 6.95 ▲3.65 | 69.64 ▲21.00 |
Posts /wp-admin/edit.php | 6.99 ▲3.63 | 76.84 ▲32.42 |
Add New Post /wp-admin/post-new.php | 9.70 ▲3.82 | 130.53 ▲33.04 |
Media Library /wp-admin/upload.php | 6.95 ▲3.72 | 68.57 ▲35.44 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 7.05 | 73.40 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 6.93 | 56.16 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 6.93 | 57.10 |
Server storage [IO: ▲9.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 261 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
acf_version |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Important Dates Dashboard Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲153 | 13.64 ▼0.73 | 1.95 ▲0.20 | 46.92 ▲2.35 |
Dashboard /wp-admin | 2,280 ▲92 | 4.96 ▲0.07 | 100.17 ▼20.42 | 41.10 ▼9.04 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▼0.04 | 38.22 ▲1.34 | 34.07 ▼5.43 |
Add New Post /wp-admin/post-new.php | 6,691 ▲5,163 | 24.14 ▲6.13 | 1,002.89 ▲393.64 | 41.14 ▼21.41 |
Media Library /wp-admin/upload.php | 1,970 ▲588 | 8.29 ▲4.09 | 224.21 ▲125.94 | 52.05 ▲9.05 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 2,350 | 4.01 | 80.13 | 79.28 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 1,174 | 2.92 | 41.65 | 53.39 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 1,217 | 2.11 | 32.87 | 32.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- acf_version
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 77× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field_number' not found in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/fields/class-acf-field-range.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/fields/class-acf-field-date_picker.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/fields/class-acf-field-accordion.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/admin/views/html-admin-page-upgrade-network.php:24
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/fields/class-acf-field-text.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/acf-helper-functions.php:142
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/admin/views/field-group-field.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/admin/views/field-group-field.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/important-dates-dashboard-widget/includes/acf/includes/fields/class-acf-field-email.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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: "vma.agency"
important-dates-dashboard-widget/important_dates_dashboard_widget.php 92% from 13 tests
The main file in "Important Dates Dashboard Widget" v. 1.02 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("important-dates-dashboard-widget.php" instead of "important_dates_dashboard_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin112,401 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 23,805 | 40,551 | 48,965 |
JavaScript | 17 | 5,883 | 5,989 | 38,456 |
PHP | 138 | 8,540 | 18,252 | 18,896 |
CSS | 15 | 495 | 739 | 6,078 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 2 | 1.96% |
▷ Concrete classes | 100 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 746 | |
▷ Static methods | 1 | 0.13% |
▷ Public methods | 727 | 97.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 2.55% |
Functions | 452 | |
▷ Named functions | 448 | 99.12% |
▷ Anonymous functions | 4 | 0.88% |
Constants | 10 | |
▷ Global constants | 10 | 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
13 PNG files occupy 0.47MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 66.77KB | 24.82KB | ▼ 62.83% |
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
assets/icon-256x256.png | 39.89KB | 12.73KB | ▼ 68.08% |
assets/banner-772x250.png | 56.47KB | 18.91KB | ▼ 66.51% |