Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲5.08ms] Passed 4 tests
Server-side resources used by Church Metrics Dashboard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.93 | 46.23 ▲7.13 |
Dashboard /wp-admin | 4.32 ▲1.02 | 51.40 ▲2.15 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 56.01 ▲5.64 |
Add New Post /wp-admin/post-new.php | 6.91 ▲1.03 | 105.54 ▲5.39 |
Media Library /wp-admin/upload.php | 4.24 ▲1.01 | 44.92 ▲12.44 |
API Settings /wp-admin/edit.php?post_type=cm_dash_widgets&page=cm_dash_widgets_settings | 4.58 | 38.53 |
All Metrics /wp-admin/edit.php?post_type=cm_dash_widgets | 4.29 | 38.33 |
Add New Metric /wp-admin/post-new.php?post_type=cm_dash_widgets | 4.05 | 32.23 |
Server storage [IO: ▲4.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 265 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Church Metrics Dashboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.29 ▼1.09 | 4.43 ▲2.70 | 46.14 ▲3.17 |
Dashboard /wp-admin | 2,254 ▲66 | 4.88 ▼1.03 | 109.46 ▲6.88 | 43.67 ▲0.11 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.23 ▲0.24 | 44.25 ▲4.76 | 36.35 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,567 ▲47 | 23.21 ▲0.13 | 654.40 ▼28.13 | 54.19 ▲3.42 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.30 ▲0.02 | 96.62 ▲2.08 | 45.05 ▲2.74 |
API Settings /wp-admin/edit.php?post_type=cm_dash_widgets&page=cm_dash_widgets_settings | 844 | 2.15 | 26.72 | 23.00 |
All Metrics /wp-admin/edit.php?post_type=cm_dash_widgets | 1,133 | 1.99 | 32.54 | 29.51 |
Add New Metric /wp-admin/post-new.php?post_type=cm_dash_widgets | 28 | 0.44 | 0.06 | 3.68 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/church-metrics-dashboard/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/church-metrics-dashboard/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/church-metrics-dashboard/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-metrics-dashboard/lib/cmb2/example-functions.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/church-metrics-dashboard/church-metrics-dashboard.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/church-metrics-dashboard/lib/cmb2/init.php:119
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/church-metrics-dashboard/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/church-metrics-dashboard/lib/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/church-metrics-dashboard/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/church-metrics-dashboard/lib/cmb-field-select2/cmb-field-select2.php:31
- > PHP Warning
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)
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=cm_dash_widgets
- > Network (severe)
wp-admin/post-new.php?post_type=cm_dash_widgets - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: stats, church, metrics, dashboard
church-metrics-dashboard/church-metrics-dashboard.php Passed 13 tests
The main PHP file in "Church Metrics Dashboard" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Allows you to create Dashboard Widgets to display data from Church Metrics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin86,269 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,873 | 11,789 | 20,306 |
PHP | 28 | 2,400 | 3,440 | 7,263 |
CSS | 8 | 1,162 | 1,041 | 4,645 |
JavaScript | 52 | 844 | 766 | 4,089 |
Sass | 11 | 168 | 23 | 1,116 |
Markdown | 6 | 205 | 0 | 558 |
JSON | 8 | 0 | 0 | 277 |
YAML | 2 | 9 | 0 | 152 |
Bourne Shell | 2 | 42 | 7 | 122 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 33.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 2 | 6.90% |
▷ Concrete classes | 27 | 93.10% |
▷ Final classes | 0 | 0.00% |
Methods | 416 | |
▷ Static methods | 29 | 6.97% |
▷ Public methods | 399 | 95.91% |
▷ Protected methods | 12 | 2.88% |
▷ Private methods | 5 | 1.20% |
Functions | 42 | |
▷ Named functions | 35 | 83.33% |
▷ Anonymous functions | 7 | 16.67% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |