Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.01ms] 75% from 4 tests
A check of server-side resources used by World Prayer Time
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 648.05ms on /wp-admin/admin.php?page=world_prayer_times)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.85 ▼3.32 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.75 ▲0.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.13 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 102.11 ▲5.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.65 ▼1.26 |
Author /wp-admin/admin.php?page=world_prayer_plugin_author | 3.22 | 30.78 |
World Prayer Times /wp-admin/admin.php?page=world_prayer_times | 4.11 | 648.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for World Prayer Time
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.24 ▼1.56 | 1.91 ▲0.25 | 42.58 ▼3.45 |
Dashboard /wp-admin | 2,233 ▲45 | 5.87 ▲1.01 | 103.86 ▼6.91 | 41.64 ▲0.09 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.02 ▲0.01 | 41.03 ▲0.91 | 35.39 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.01 ▲4.75 | 606.01 ▼72.72 | 50.95 ▼2.75 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▼0.15 | 95.96 ▼18.10 | 43.17 ▼13.01 |
Author /wp-admin/admin.php?page=world_prayer_plugin_author | 810 | 2.05 | 23.98 | 25.71 |
World Prayer Times /wp-admin/admin.php?page=world_prayer_times | 1,853 | 1.83 | 24.80 | 26.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=world_prayer_times
- > Notice in wp-content/plugins/world-prayer-time/admin/tuning.php+18
Trying to access array offset on value of type bool
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/world-prayer-time/admin/author.php
- > /wp-content/plugins/world-prayer-time/world-prayer-times.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/world-prayer-time/admin/menu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/world-prayer-time/admin/tuning.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
world-prayer-time/world-prayer-times.php 92% from 13 tests
Analyzing the main PHP file in "World Prayer Time" version 2.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("world-prayer-time.php" instead of "world-prayer-times.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin406 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 77 | 31 | 406 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
There were not PNG files found in your plugin