Benchmarks
Plugin footprint 83% 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.45MB] [CPU: ▼11.75ms] Passed 4 tests
Server-side resources used by In Memoriam (Light a Candle)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 47.20 ▲8.80 |
Dashboard /wp-admin | 3.54 ▲0.23 | 53.77 ▲4.61 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 56.05 ▲7.06 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.50 | 39.81 ▼67.47 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 43.75 ▲9.18 |
Categories /wp-admin/edit-tags.php?taxonomy=candle_category&post_type=candle | 3.46 | 40.57 |
Add New /wp-admin/post-new.php?post_type=candle | 3.39 | 39.25 |
Candles /wp-admin/edit.php?post_type=candle | 3.49 | 53.80 |
In Memoriam /wp-admin/options-general.php?page=imlac_options_slug | 3.43 | 33.04 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_candles_widget |
theysaidso_admin_options |
widget_recent-posts |
imlac_candle_publish_notification |
can_compress_scripts |
db_upgraded |
ct_activated |
Browser metrics Passed 4 tests
An overview of browser requirements for In Memoriam (Light a Candle)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.07 ▼0.30 | 5.29 ▲3.68 | 38.86 ▼2.51 |
Dashboard /wp-admin | 2,243 ▲52 | 5.88 ▼0.00 | 98.25 ▼11.22 | 40.87 ▼1.10 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.02 ▼0.04 | 39.35 ▲2.18 | 35.36 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,562 ▲48 | 23.39 ▲5.71 | 656.74 ▲28.67 | 55.26 ▲5.49 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.19 ▼0.01 | 103.31 ▲6.26 | 46.92 ▲5.19 |
Categories /wp-admin/edit-tags.php?taxonomy=candle_category&post_type=candle | 1,276 | 2.15 | 27.11 | 29.65 |
Add New /wp-admin/post-new.php?post_type=candle | 2,495 | 7.93 | 177.45 | 68.36 |
Candles /wp-admin/edit.php?post_type=candle | 1,156 | 1.94 | 32.11 | 33.25 |
In Memoriam /wp-admin/options-general.php?page=imlac_options_slug | 819 | 1.67 | 22.91 | 24.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- widget_recent-posts
- ct_activated
- imlac_candle_publish_notification
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_candles_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=candle
- > Notice in wp-content/plugins/in-memoriam-light-a-candle/class.in-memoriam-light-a-candle.php+338
Trying to get property 'post_type' of non-object
SRP 50% 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 fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/in-memoriam-light-a-candle/class.candles-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in-memoriam-light-a-candle/lib/templates/email-prayer-candle.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/in-memoriam-light-a-candle/lib/options.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in-memoriam-light-a-candle/lib/templates/email-new-candle.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in-memoriam-light-a-candle/lib/functions.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/in-memoriam-light-a-candle/lib/templates/email-recipient-candle.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/in-memoriam-light-a-candle/lib/shortcodes.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots do not have images: #5 (icon.svg - Icon SVG), #6 (screenshot-1.jpg - Example use of the [candles] shortcode. This will display all candles with pagination.), #7 (screenshot-2.jpg - Example use of the [candle-submission-form] shortcode. This shortcode will turn this page into a Candle submission page for your users.), #8 (screenshot-3.jpg - Example use of the Candle widget.), #9 (screenshot-4.jpg - Managing Candles section in control panel)
in-memoriam-light-a-candle/in-memoriam-light-a-candle.php Passed 13 tests
The main PHP file in "In Memoriam (Light a Candle)" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Allows you to easily and quickly add candles to your WordPress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,528 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 501 | 206 | 1,114 |
PO File | 3 | 149 | 180 | 376 |
JavaScript | 3 | 25 | 5 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 3 | 75.00% |
Methods | 22 | |
▷ Static methods | 14 | 63.64% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.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
There are no PNG files in this plugin