Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.90ms] Passed 4 tests
This is a short check of server-side resources used by Nafeza Prayer Time
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 37.78 ▼2.63 |
Dashboard /wp-admin | 3.63 ▲0.29 | 47.97 ▼9.03 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 58.62 ▲11.56 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 90.29 ▼9.96 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 36.00 ▲2.04 |
Prayer Times /wp-admin/options-general.php?page=nafeza_prayer_time_admin_page | 3.54 | 38.93 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_nafeza_prayer_time_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Nafeza Prayer Time: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲173 | 14.34 ▼0.08 | 1.74 ▼0.14 | 41.63 ▼2.34 |
Dashboard /wp-admin | 2,341 ▲169 | 6.11 ▲0.49 | 121.75 ▲14.04 | 42.27 ▲5.17 |
Posts /wp-admin/edit.php | 2,270 ▲167 | 3.40 ▲1.44 | 54.42 ▲10.75 | 34.74 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.10 ▲0.01 | 629.99 ▲14.46 | 35.08 ▼16.62 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.14 ▼0.06 | 82.76 ▼21.85 | 41.09 ▼4.33 |
Prayer Times /wp-admin/options-general.php?page=nafeza_prayer_time_admin_page | 1,283 | 2.98 | 39.00 | 65.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_nafeza_prayer_time_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nafeza-prayer-time/includes/setting.php
- > /wp-content/plugins/nafeza-prayer-time/includes/views.php
- > /wp-content/plugins/nafeza-prayer-time/includes/functions.php
- > /wp-content/plugins/nafeza-prayer-time/includes/widget.php
- > /wp-content/plugins/nafeza-prayer-time/nafeza-prayer-time.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=nafeza_prayer_time_admin_page
- > Javascript (severe) in unknown
/wp-content/plugins/nafeza-prayer-time//js/upload_icon.js?ver=1.1.0 22:0 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: mosque, muslim, ezan, religious, worship...
nafeza-prayer-time/nafeza-prayer-time.php Passed 13 tests
The main PHP script in "Nafeza Prayer Time" version 1.2.9 is automatically included on every request by WordPress
31 characters long description:
Prayer times all over the world
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
There were no executable files found in this plugin2,933 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 68 | 19 | 2,671 |
PO File | 2 | 90 | 0 | 230 |
JavaScript | 1 | 4 | 0 | 25 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG files were detected