Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.65ms] Passed 4 tests
An overview of server-side resources used by WP Prayer II
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.32 | 36.98 ▼0.56 |
Dashboard /wp-admin | 3.58 ▲0.28 | 49.26 ▲2.84 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 53.02 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.04 ▲3.81 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 37.68 ▲6.80 |
Email Settings /wp-admin/edit.php?post_type=prayers&page=pray-email-settings | 3.52 | 32.56 |
Settings /wp-admin/edit.php?post_type=prayers&page=pray-settings | 3.58 | 30.89 |
Prayers Performed /wp-admin/edit.php?post_type=prayers_performed | 3.56 | 34.76 |
Add Prayer /wp-admin/post-new.php?post_type=prayers | 3.66 | 50.80 |
Categories /wp-admin/edit-tags.php?taxonomy=prayertypes&post_type=prayers | 3.50 | 41.93 |
List Prayers /wp-admin/edit.php?post_type=prayers | 3.56 | 38.86 |
Server storage [IO: ▲0.33MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 18 new options
New WordPress options |
---|
upr_prayer_send_admin_email |
widget_recent-posts |
upr_show_prayer_category |
db_upgraded |
upr_login_not_required_request |
upr_prayer_default_status_pending |
upr_display_username_on_prayer_listing |
upr_prayer_hide_captcha |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Prayer II
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.93 ▼0.36 | 5.01 ▲3.10 | 43.25 ▼1.89 |
Dashboard /wp-admin | 2,239 ▲48 | 5.87 ▲1.02 | 99.45 ▼12.67 | 71.76 ▲27.51 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.01 ▲0.04 | 39.07 ▼2.93 | 33.95 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.01 ▲5.43 | 753.40 ▲67.55 | 53.53 ▲2.42 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.20 ▲0.02 | 96.66 ▼0.85 | 71.00 ▲23.45 |
Email Settings /wp-admin/edit.php?post_type=prayers&page=pray-email-settings | 953 | 2.02 | 24.75 | 27.12 |
Settings /wp-admin/edit.php?post_type=prayers&page=pray-settings | 1,129 | 2.02 | 23.90 | 24.11 |
Prayers Performed /wp-admin/edit.php?post_type=prayers_performed | 1,095 | 1.96 | 31.45 | 28.58 |
Add Prayer /wp-admin/post-new.php?post_type=prayers | 2,647 | 7.75 | 174.72 | 129.77 |
Categories /wp-admin/edit-tags.php?taxonomy=prayertypes&post_type=prayers | 1,310 | 2.14 | 25.50 | 29.94 |
List Prayers /wp-admin/edit.php?post_type=prayers | 1,139 | 1.95 | 29.96 | 31.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-prayers-request/inc/upr_shortcode.php
- > /wp-content/plugins/wp-prayers-request/user-prayers-request.php
- > /wp-content/plugins/wp-prayers-request/inc/captcha.php
- > /wp-content/plugins/wp-prayers-request/inc/upr_email_settings.php
- > /wp-content/plugins/wp-prayers-request/inc/upr_settings.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 310
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 307
- > PHP Warning
imagettfbbox(): Could not find/open font in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 304
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 307
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 186
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/wp-prayers-request/inc/phptextClass.php on line 310
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
5 plugin tags: ministry, pray, prayer, church, bible
wp-prayers-request/user-prayers-request.php 85% from 13 tests
The main PHP script in "WP Prayer II" version 2.4.6 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-prayers-request.php" instead of "user-prayers-request.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,287 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 176 | 17 | 6,313 |
PHP | 6 | 353 | 131 | 1,727 |
JavaScript | 1 | 5 | 20 | 219 |
SVG | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 3 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pray.png | 0.62KB | 0.67KB | 0.00% |