Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▼7.43ms] Passed 4 tests
A check of server-side resources used by Ele Digital Clock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 41.89 ▼3.59 |
Dashboard /wp-admin | 3.99 ▲0.69 | 49.30 ▼10.27 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 47.22 ▼3.14 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 87.29 ▼12.73 |
Media Library /wp-admin/upload.php | 3.92 ▲0.68 | 39.08 ▼0.19 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ele Digital Clock
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.73 ▲0.17 | 1.76 ▲0.09 | 42.04 ▼1.82 |
Dashboard /wp-admin | 2,209 ▲29 | 5.52 ▼0.06 | 86.40 ▼4.08 | 41.58 ▼0.07 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 1.98 ▼0.05 | 36.15 ▲2.17 | 33.22 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 23.07 ▲4.72 | 613.10 ▼25.49 | 53.66 ▼21.27 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.12 ▼0.09 | 97.76 ▼9.15 | 44.36 ▼1.77 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ele-digital-clock/includes/widgets/ele-digital-clock-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ele-digital-clock/includes/templates/template-digital-clock_02.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ele-digital-clock/includes/templates/template-digital-clock_01.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ele-digital-clock/includes/templates/template-digital-clock_03.php:21
- > PHP Notice
Undefined variable: settings in wp-content/plugins/ele-digital-clock/includes/templates/template-digital-clock_01.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ele-digital-clock/includes/templates/template-digital-clock_01.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in ele-digital-clock/assets to your readme.txt
ele-digital-clock/ele-digital-clock.php Passed 13 tests
The main file in "Ele Digital Clock" v. 1.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Fancy and customizable Digital Clock widgets for Elementor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,420 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 137 | 43 | 777 |
CSS | 2 | 89 | 1 | 561 |
JavaScript | 1 | 30 | 2 | 68 |
SVG | 1 | 0 | 0 | 14 |
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.32 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 2 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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