Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/daily-zman-widget/zmandaily.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_DailyZman_Widget has a deprecated constructor
Server metrics [RAM: ▼1.76MB] [CPU: ▼53.44ms] Passed 4 tests
Server-side resources used by Daily Zman Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 5.27 ▼37.47 |
Dashboard /wp-admin | 2.25 ▼1.05 | 10.31 ▼34.54 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 7.36 ▼45.37 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 6.62 ▼96.39 |
Media Library /wp-admin/upload.php | 2.26 ▼0.98 | 5.69 ▼29.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_zman-daily-widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Daily Zman Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.32 ▼1.05 | 1.83 ▲0.16 | 43.69 ▼4.62 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▲0.83 | 108.00 ▲6.67 | 42.40 ▼1.23 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.03 | 39.82 ▼1.32 | 35.86 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.16 ▲0.21 | 588.43 ▲0.43 | 50.43 ▼0.74 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.05 | 97.29 ▼4.09 | 44.83 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/daily-zman-widget/zmandaily.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_DailyZman_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_zman-daily-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/daily-zman-widget/zmandaily.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: zmanim, zman, davening times, prayer times, davening
daily-zman-widget/zmandaily.php 92% from 13 tests
The entry point to "Daily Zman Widget" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("daily-zman-widget.php" instead of "zmandaily.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin275 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 48 | 275 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 12.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin