Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-shabbat/timezone/timezone.php+2234
Undefined variable: timezone
Server metrics [RAM: ▼0.21MB] [CPU: ▼52.34ms] Passed 4 tests
A check of server-side resources used by WP-Shabbat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.33 | 13.15 ▼28.32 |
Dashboard /wp-admin | 3.86 ▲0.47 | 12.82 ▼49.32 |
Posts /wp-admin/edit.php | 3.86 ▲0.46 | 13.11 ▼41.47 |
Add New Post /wp-admin/post-new.php | 3.86 ▼2.08 | 14.69 ▼90.25 |
Media Library /wp-admin/upload.php | 3.86 ▲0.59 | 12.49 ▼26.03 |
WP-Shabbat /wp-admin/options-general.php?page=wp_shabbat_admin | 3.86 | 12.34 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
wp_shabbat_settings_richtext |
wp_shabbat_update_settings |
db_upgraded |
widget_recent-posts |
wp_shabbat_settings_hide_classes |
wp_shabbat_settings |
Browser metrics Passed 4 tests
WP-Shabbat: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▼0.01 | 2.49 ▲0.52 | 46.10 ▲0.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.02 | 88.13 ▼4.26 | 39.85 ▼1.74 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.08 | 40.69 ▲0.19 | 38.17 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 18.36 ▲0.01 | 626.12 ▼41.87 | 73.61 ▼3.51 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.07 | 106.62 ▲1.48 | 47.76 ▲3.65 |
WP-Shabbat /wp-admin/options-general.php?page=wp_shabbat_admin | 945 | 1.99 | 27.26 | 38.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-shabbat/timezone/timezone.php+2234
Undefined variable: timezone
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_shabbat_admin
- > Notice in wp-content/plugins/wp-shabbat/timezone/timezone.php+2234
Undefined variable: timezone
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_shabbat_admin
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_shabbat_admin
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-shabbat/wp-shabbat.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-shabbat/wp-shabbat-update.php:5
- > PHP Notice
Undefined variable: dayDetails in wp-content/plugins/wp-shabbat/wp-shabbat-countdown.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-shabbat/wp-shabbat-countdown.php:108
- > PHP Notice
Undefined variable: diff in wp-content/plugins/wp-shabbat/wp-shabbat-countdown.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-shabbat/wp-shabbat-popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-shabbat/wp-shabbat-user.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_shabbat_user_time() in wp-content/plugins/wp-shabbat/wp-shabbat-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: popup window, close site, shabbat, popup message, 503...
wp-shabbat/wp-shabbat.php 92% from 13 tests
The entry point to "WP-Shabbat" version 2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin8,375 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 292 | 133 | 7,533 |
PO File | 2 | 154 | 1,523 | 411 |
Pascal | 2 | 62 | 1,692 | 381 |
CSS | 2 | 6 | 1 | 34 |
JavaScript | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 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