Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; yamuslimwordpress has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼49.95ms] Passed 4 tests
Analyzing server-side resources used by Ya'Muslim Prayer Time Wordpress Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.20 ▼37.25 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.40 ▼43.94 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 7.02 ▼33.91 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.34 ▼84.68 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.46 ▼28.71 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_yamuslimwordpress |
can_compress_scripts |
Browser metrics Passed 4 tests
Ya'Muslim Prayer Time Wordpress 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,829 ▲94 | 13.30 ▼1.10 | 1.84 ▼0.05 | 42.03 ▼9.51 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▼0.00 | 99.55 ▼11.79 | 37.77 ▼0.61 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.03 | 40.46 ▼0.36 | 36.31 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.65 ▲0.00 | 609.71 ▼12.61 | 50.16 ▼9.39 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.03 | 95.24 ▼6.42 | 41.28 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; yamuslimwordpress has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_yamuslimwordpress
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== yamuslim-prayer-time-wordpress-widget ===
) - Screenshots: Please add an image for screenshot #1 (widget in sidebar)
yamuslim-prayer-time-wordpress-widget/yamuslimwordpress.php 92% from 13 tests
The main PHP file in "Ya'Muslim Prayer Time Wordpress Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yamuslim-prayer-time-wordpress-widget.php" instead of "yamuslimwordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin402 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 120 | 74 | 295 |
PHP | 1 | 26 | 8 | 92 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 10.63KB | 4.55KB | ▼ 57.21% |