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.12MB] [CPU: ▼11.13ms] Passed 4 tests
This is a short check of server-side resources used by Church Social
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.36 ▼3.28 |
Dashboard /wp-admin | 3.44 ▲0.09 | 45.40 ▼16.10 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.17 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.25 ▼22.61 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.29 ▼0.23 |
Church Social /wp-admin/options-general.php?page=church_social | 3.36 | 33.05 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_church_social_recent_sermons |
db_upgraded |
widget_recent-posts |
church_social_sermon_copyright_notice |
church_social_calendar_page_id |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_church_social_upcoming_events |
church_social_api_key |
church_social_theme |
... |
Browser metrics Passed 4 tests
Church Social: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.23 ▼0.39 | 1.57 ▼0.31 | 38.07 ▼2.89 |
Dashboard /wp-admin | 2,202 ▲27 | 5.62 ▼0.15 | 83.69 ▼16.25 | 38.65 ▼5.77 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 32.73 ▼1.52 | 33.87 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.17 ▲0.06 | 641.85 ▼6.26 | 51.94 ▼2.66 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.03 | 96.49 ▼0.97 | 41.93 ▲0.30 |
Church Social /wp-admin/options-general.php?page=church_social | 942 | 1.99 | 23.04 | 27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_church_social_recent_sermons
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_church_social_upcoming_events
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/church-social/views/recent_sermons.php
- > /wp-content/plugins/church-social/views/upcoming_events.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/church-social/views/calendar.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/church-social/libs/UpcomingEventsWidget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/church-social/libs/RecentSermonsWidget.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/church-social/views/event.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/church-social/views/admin.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/church-social/libs/UpcomingEventsWidget.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/church-social/views/sermon.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/church-social/views/sermons.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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: events, church, sermons, calendar
church-social/church_social.php 92% from 13 tests
The primary PHP file in "Church Social" version 1.5.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("church-social.php" instead of "church_social.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin12,497 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 11,537 |
PHP | 15 | 147 | 11 | 843 |
Sass | 4 | 65 | 0 | 108 |
JavaScript | 1 | 2 | 0 | 7 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 9.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 3 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin