Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.03ms] Passed 4 tests
A check of server-side resources used by WP Obituary Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.33 ▼32.92 |
Dashboard /wp-admin | 2.11 ▼1.20 | 8.02 ▼41.24 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.58 ▼37.52 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.48 ▼84.42 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 8.70 ▼24.40 |
Add New /wp-admin/post-new.php?post_type=wp_obituary | 2.11 | 8.58 |
All Obituaries /wp-admin/edit.php?post_type=wp_obituary | 2.11 | 6.55 |
Settings /wp-admin/edit.php?post_type=wp_obituary&page=wp-obituary-settings | 2.11 | 7.95 |
Category /wp-admin/edit-tags.php?taxonomy=obituary_cat&post_type=wp_obituary | 2.11 | 7.51 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Obituary Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 13.76 ▼0.75 | 1.60 ▼0.19 | 43.47 ▲0.55 |
Dashboard /wp-admin | 2,245 ▲77 | 5.81 ▲0.26 | 96.62 ▲7.50 | 76.04 ▲34.92 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.92 ▲0.89 | 40.08 ▲1.61 | 29.00 ▼11.01 |
Add New Post /wp-admin/post-new.php | 1,736 ▲210 | 23.19 ▲0.00 | 715.86 ▲29.99 | 45.77 ▼6.92 |
Media Library /wp-admin/upload.php | 1,456 ▲59 | 5.33 ▲1.11 | 103.68 ▲2.10 | 82.55 ▲36.59 |
Add New /wp-admin/post-new.php?post_type=wp_obituary | 2,975 | 8.26 | 207.34 | 149.66 |
All Obituaries /wp-admin/edit.php?post_type=wp_obituary | 1,185 | 2.65 | 42.33 | 27.71 |
Settings /wp-admin/edit.php?post_type=wp_obituary&page=wp-obituary-settings | 1,080 | 3.63 | 46.79 | 56.10 |
Category /wp-admin/edit-tags.php?taxonomy=obituary_cat&post_type=wp_obituary | 1,368 | 2.59 | 35.54 | 32.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-obituary/includes/functions.php+605
Undefined index: post_type
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=obituary_cat&post_type=wp_obituary
- > Notice in wp-content/plugins/wp-obituary/includes/functions.php+605
Trying to get property 'query_vars' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=obituary_cat&post_type=wp_obituary
- > Notice in wp-content/plugins/wp-obituary/includes/functions.php+605
Trying to access array offset on value of type null
- 4871 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=obituary_cat&post_type=wp_obituary
- > Notice in wp-content/plugins/wp-obituary/includes/functions.php+605
Undefined index: post_type
- > GET request to /wp-admin/edit.php?post_type=wp_obituary&page=wp-obituary-settings
- > Notice in wp-content/plugins/wp-obituary/admin/classes/class-settings.php+135
Trying to access array offset on value of type bool
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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-obituary/templates/loop-single.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-obituary/templates/single.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_commenter() in wp-content/plugins/wp-obituary/templates/comments.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/wp-obituary/templates/archive.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-obituary/templates/loop-archive.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wp-obituary/wp-obituary.php Passed 13 tests
The principal PHP file in "WP Obituary Manager" v. 2.0.4 is loaded by WordPress automatically on each request
74 characters long description:
WP Obituary Manager plugin will helps you manage your obituary sites easy.
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
Good job! No executable or dangerous file extensions detected5,293 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 501 | 179 | 3,225 |
CSS | 8 | 187 | 67 | 1,107 |
PHP | 14 | 529 | 112 | 961 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/map.png | 0.57KB | 0.39KB | ▼ 32.42% |
images/clock.png | 0.61KB | 0.33KB | ▼ 45.34% |
admin/assets/images/obituary.png | 0.64KB | 0.73KB | 0.00% |
images/calendar.png | 0.64KB | 0.60KB | ▼ 6.70% |