Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲1.94ms] Passed 4 tests
Server-side resources used by Church Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.82 ▲1.35 | 49.92 ▲8.20 |
Dashboard /wp-admin | 4.84 ▲1.53 | 55.71 ▲5.23 |
Posts /wp-admin/edit.php | 4.95 ▲1.59 | 53.95 ▲4.78 |
Add New Post /wp-admin/post-new.php | 7.48 ▲1.59 | 93.96 ▼10.44 |
Media Library /wp-admin/upload.php | 4.77 ▲1.54 | 49.14 ▲16.43 |
Plugin Settings /wp-admin/admin.php?page=church_options_admin_page | 4.72 | 46.05 |
Dashboard /wp-admin/admin.php?page=church_options_dashboard_admin_page | 4.70 | 35.56 |
Server storage [IO: ▲3.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 162 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Church Options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 13.59 ▼0.80 | 6.18 ▲4.13 | 36.98 ▼7.27 |
Dashboard /wp-admin | 2,240 ▲52 | 5.83 ▲0.93 | 102.09 ▼15.97 | 37.22 ▼5.80 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.03 ▲0.02 | 38.47 ▲3.20 | 37.64 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6,835 ▲5,302 | 29.19 ▲5.99 | 967.41 ▲295.76 | 39.14 ▼14.99 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.29 ▲0.06 | 108.38 ▲1.07 | 75.43 ▲28.60 |
Plugin Settings /wp-admin/admin.php?page=church_options_admin_page | 900 | 2.18 | 29.33 | 29.92 |
Dashboard /wp-admin/admin.php?page=church_options_dashboard_admin_page | 1,030 | 2.07 | 26.99 | 27.85 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=church_options_dashboard_admin_page
- > Notice in wp-content/plugins/church-options/church-options.php+349
Undefined property: stdClass::$publish
- > GET request to /wp-admin/admin.php?page=church_options_dashboard_admin_page
- > Notice in wp-content/plugins/church-options/church-options.php+482
Undefined variable: output
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 take a closer look at the following
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-options/lib/advanced-custom-fields/core/controllers/upgrade.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/church-options/lib/advanced-custom-fields/core/fields/tab.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/church-options/lib/advanced-custom-fields/core/fields/number.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-options/cpt/church-people.php:36
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/church-options/lib/advanced-custom-fields/core/fields/dummy.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/church-options/lib/advanced-custom-fields/core/fields/page_link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-options/lib/advanced-custom-fields/core/controllers/revisions.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/church-options/lib/advanced-custom-fields/core/api.php:866
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/church-options/lib/advanced-custom-fields/core/fields/select.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-options/cpt/church-verses.php:36
- > 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 Passed 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
9 plugin tags: ministries, announcements, custom fields, church, sermons...
church-options/church-options.php Passed 13 tests
The principal PHP file in "Church Options" v. 1.0.3 is loaded by WordPress automatically on each request
118 characters long description:
An all-in-one solution for churches to add the custom post types and custom fields they need for an effective website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected42,015 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 11,943 | 18,312 | 24,892 |
PHP | 51 | 4,204 | 4,837 | 10,347 |
JavaScript | 10 | 2,167 | 1,671 | 4,210 |
CSS | 8 | 701 | 394 | 2,566 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 282 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 73 | |
▷ Named functions | 72 | 98.63% |
▷ Anonymous functions | 1 | 1.37% |
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
19 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/advanced-custom-fields/images/sprite@2x.png | 12.53KB | 4.91KB | ▼ 60.81% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/advanced-custom-fields/images/arrows@2x.png | 0.84KB | 0.88KB | 0.00% |