Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼6.64ms] Passed 4 tests
Server-side resources used by Salat Times
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 42.16 ▼6.83 |
Dashboard /wp-admin | 3.72 ▲0.42 | 49.64 ▼2.70 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 48.75 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.42 | 91.13 ▼15.69 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.74 ▼1.33 |
Salat Times /wp-admin/options-general.php?page=salat_times | 3.61 | 33.99 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/salat-times/" and "wp-content/uploads/"
- (new file) wp-content/plugin_data/salat-times/manual_time.data
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Salat Times
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.57 ▼0.39 | 1.66 ▼0.37 | 41.35 ▼1.22 |
Dashboard /wp-admin | 2,210 ▲22 | 4.81 ▼0.09 | 104.41 ▼6.99 | 38.75 ▼4.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.05 | 36.99 ▲0.98 | 35.13 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.24 ▼0.10 | 729.83 ▼4.91 | 68.36 ▲6.99 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.02 | 114.90 ▲12.27 | 43.96 ▼4.02 |
Salat Times /wp-admin/options-general.php?page=salat_times | 2,297 | 1.86 | 25.56 | 45.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/salat-times/uninstall.php
- > /wp-content/plugins/salat-times/PrayTime.php
- > /wp-content/plugins/salat-times/salat-times.php
- > /wp-content/plugins/salat-times/salat_times_admin.php
- > /wp-content/plugins/salat-times/uCal.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget preview (English).), #2 (Widget preview (Bengali).), #3 (Manual Time Widget preview (English).), #4 (Appearance > Widget.)
salat-times/salat-times.php Passed 13 tests
The main PHP script in "Salat Times" version 3.6 is automatically included on every request by WordPress
138 characters long description:
Salat (Namaz) timetable for any location around the world, based on a variety of calculation methods currently used in muslim communities.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,330 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 240 | 180 | 1,330 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 75.26KB | 32.19KB | ▼ 57.23% |
screenshot-2.png | 7.00KB | 4.95KB | ▼ 29.33% |
screenshot-1.png | 5.59KB | 3.43KB | ▼ 38.73% |
screenshot-4.png | 9.50KB | 6.23KB | ▼ 34.39% |