Benchmarks
Plugin footprint 83% 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: ▲0.94MB] [CPU: ▲4.60ms] Passed 4 tests
Server-side resources used by K7 Church
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.91 | 46.82 ▲4.79 |
Dashboard /wp-admin | 4.29 ▲0.99 | 56.69 ▲8.46 |
Posts /wp-admin/edit.php | 4.36 ▲1.00 | 64.46 ▲14.78 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.93 | 88.88 ▼2.93 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 41.91 ▲8.08 |
Add new /wp-admin/post-new.php?post_type=event | 4.26 | 51.68 |
Settings /wp-admin/edit.php?post_type=event&page=event_settings | 4.15 | 40.85 |
All events /wp-admin/edit.php?post_type=event | 4.22 | 44.12 |
Add New /wp-admin/post-new.php?post_type=sermon | 4.28 | 51.83 |
All Sermons /wp-admin/edit.php?post_type=sermon | 4.22 | 45.19 |
Server storage [IO: ▲2.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 287 new files
Database: no new tables, 10 new options
New WordPress options |
---|
church_plugin_tax |
theysaidso_admin_options |
widget_church_location_widget |
can_compress_scripts |
church_plugin_cpt |
widget_recent-posts |
widget_recent-comments |
church_plugin |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for K7 Church
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲289 | 15.39 ▲1.01 | 2.11 ▲0.11 | 45.53 ▼5.30 |
Dashboard /wp-admin | 2,445 ▲257 | 7.03 ▲1.13 | 148.63 ▲29.12 | 43.63 ▼0.14 |
Posts /wp-admin/edit.php | 2,359 ▲267 | 3.56 ▲1.54 | 61.41 ▲22.20 | 42.95 ▲8.88 |
Add New Post /wp-admin/post-new.php | 1,597 ▲64 | 23.40 ▲0.09 | 709.57 ▲0.87 | 40.86 ▼12.76 |
Media Library /wp-admin/upload.php | 1,495 ▲110 | 4.76 ▲0.59 | 88.87 ▼11.55 | 44.18 ▲2.75 |
Add new /wp-admin/post-new.php?post_type=event | 2,654 | 7.68 | 187.29 | 71.67 |
Settings /wp-admin/edit.php?post_type=event&page=event_settings | 1,251 | 3.64 | 48.07 | 24.02 |
All events /wp-admin/edit.php?post_type=event | 1,329 | 3.58 | 54.57 | 30.24 |
Add New /wp-admin/post-new.php?post_type=sermon | 2,558 | 7.62 | 168.86 | 62.59 |
All Sermons /wp-admin/edit.php?post_type=sermon | 1,366 | 3.61 | 53.69 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- db_upgraded
- church_plugin
- church_plugin_cpt
- widget_church_location_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- church_plugin_tax
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/k7-church/assets/js/fullcalendar-4.3.1/examples/php/get-events.php
- > /wp-content/plugins/k7-church/assets/js/fullcalendar-4.3.1/examples/php/get-time-zones.php
- > /wp-content/plugins/k7-church/templates/email.php
- > /wp-content/plugins/k7-church/church-plugin.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/k7-church/templates/register.php on line 6
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/k7-church/templates/register.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/k7-church/page-templates/location-template.php:7
- > PHP Fatal error
Uncaught Error: Class 'Church_BaseController' not found in wp-content/plugins/k7-church/inc/controller/Church_ParticipantController.php:9
- > PHP Fatal error
Uncaught Error: Class 'Church_BaseController' not found in wp-content/plugins/k7-church/inc/api/callbacks/Church_SermonCallbacks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/k7-church/templates/auth.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/k7-church/templates/admin/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/k7-church/templates/participe-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/k7-church/templates/cpt.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/k7-church/templates/taxonomy.php:2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sermon
- > Network (severe)
wp-content/plugins/k7-church/node_modules/code-prettify/styles/desert.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: testimonial, media widget, locations, form, register...
k7-church/church-plugin.php 92% from 13 tests
Analyzing the main PHP file in "K7 Church" version 1.0.21
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("k7-church.php" instead of "church-plugin.php")
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
Success! There were no dangerous files found in this plugin45,776 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 112 | 1,029 | 3,532 | 32,898 |
PHP | 60 | 1,300 | 798 | 5,024 |
TypeScript | 11 | 125 | 37 | 3,534 |
HTML | 16 | 221 | 0 | 1,691 |
CSS | 16 | 364 | 308 | 1,656 |
JSON | 12 | 0 | 0 | 424 |
Sass | 8 | 46 | 0 | 309 |
SVG | 11 | 0 | 3 | 169 |
Markdown | 13 | 51 | 0 | 56 |
XML | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 3 | 7.14% |
Methods | 219 | |
▷ Static methods | 10 | 4.57% |
▷ Public methods | 209 | 95.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 4.57% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/Google_Calendar_icon-icons.com_75710.png | 5.97KB | 3.17KB | ▼ 46.91% |
assets/images/no-image-available-icon-6.png | 17.14KB | 7.95KB | ▼ 53.65% |