Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.18ms] Passed 4 tests
This is a short check of server-side resources used by Salat Timing Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.77 ▼1.79 |
Dashboard /wp-admin | 3.44 ▲0.14 | 52.03 ▼3.97 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.54 ▼1.10 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 95.88 ▲2.87 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.67 ▼1.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_salattime_widget |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
ccpo_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Salat Timing Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.21 ▼0.02 | 1.79 ▼0.34 | 45.39 ▲1.31 |
Dashboard /wp-admin | 2,216 ▲39 | 5.62 ▼0.01 | 96.12 ▲7.61 | 42.20 ▼0.80 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.01 ▲0.07 | 39.66 ▲2.84 | 36.01 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.32 ▲0.21 | 677.32 ▲6.36 | 65.69 ▲10.05 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.10 ▼0.11 | 109.72 ▲6.37 | 46.79 ▲1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_salattime_widget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- ccpo_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/salat-time/salat-time.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/salat-time/widget-salat-time.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: muslim prayer time table, muslim salat time table, salat timing
salat-time/salat-time.php Passed 13 tests
"Salat Timing Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Show Salat Times, muslim prayer time
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected711 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 248 | 134 | 697 |
CSS | 1 | 7 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 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 | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin