84% wp-church-center

Code Review | WP Church Center

WordPress plugin WP Church Center scored84%from 54 tests.

About plugin

  • Plugin page: wp-church-center
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Oct 18, 2020
  • Number of updates: 40
  • Update frequency: every 30.4 days
  • Top authors: wpchurchteam (87.5%)jordesign (15%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲3.75MB] [CPU: ▲24.31ms] Passed 4 tests

This is a short check of server-side resources used by WP Church Center
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.02 ▲3.5668.85 ▲24.96
Dashboard /wp-admin7.08 ▲3.7378.46 ▲14.36
Posts /wp-admin/edit.php7.20 ▲3.8584.62 ▲31.19
Add New Post /wp-admin/post-new.php9.75 ▲3.86131.06 ▲26.73
Media Library /wp-admin/upload.php7.10 ▲3.8776.35 ▲35.26
Add Card /wp-admin/post-new.php?post_type=card7.2884.54
All Cards /wp-admin/edit.php?post_type=card7.0874.88
Card Groups /wp-admin/edit-tags.php?taxonomy=card_group&post_type=card7.0872.59

Server storage [IO: ▲7.70MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 335 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
acf_version
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Church Center: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲23214.79 ▲0.271.70 ▲0.0637.12 ▼3.20
Dashboard /wp-admin2,381 ▲2016.13 ▲0.59106.39 ▲18.3636.75 ▼8.02
Posts /wp-admin/edit.php2,312 ▲2093.47 ▲1.4652.05 ▲15.4733.81 ▼1.57
Add New Post /wp-admin/post-new.php6,707 ▲5,18127.89 ▲4.691,077.77 ▲369.6843.30 ▼15.78
Media Library /wp-admin/upload.php1,992 ▲5928.22 ▲4.04206.83 ▲95.9450.99 ▲4.06
Add Card /wp-admin/post-new.php?post_type=card3,43411.09285.8072.31
All Cards /wp-admin/edit.php?post_type=card1,3183.5346.3829.41
Card Groups /wp-admin/edit-tags.php?taxonomy=card_group&post_type=card1,5364.0758.5232.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • acf_version
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
  • 97× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/fields/class-acf-field-google-map.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/api/api-template.php:962
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/fields/class-acf-field-true_false.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/fields/class-acf-field-accordion.php:5
    • > PHP Notice
      Undefined variable: rule in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/admin/admin-field-group.php:34
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/admin/views/field-group-field.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/fields/class-acf-field-post_object.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/admin/views/settings-tools.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were no plugin tags found

wp-church-center/wp-church-center.php 92% from 13 tests

The main PHP script in "WP Church Center" version 1.3.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin106,265 lines of code in 274 files:
LanguageFilesBlank linesComment linesLines of code
PO File3220,99634,25743,935
JavaScript5213,83312,16029,062
PHP16116,71520,46520,487
CSS182179057,565
LESS71,6686724,720
HTML1610194
Markdown1470148
JSON100124
SVG118030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.97
▷ Minimum class complexity1.00
▷ Maximum class complexity127.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes120
▷ Abstract classes00.00%
▷ Concrete classes120100.00%
▷ Final classes00.00%
Methods829
▷ Static methods101.21%
▷ Public methods82799.76%
▷ Protected methods00.00%
▷ Private methods20.24%
Functions436
▷ Named functions436100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
9 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
advanced-custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%
advanced-custom-fields/assets/images/acf-logo.png3.40KB3.39KB0.23%
advanced-custom-fields/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
advanced-custom-fields/assets/inc/select2/3/select2.png0.51KB0.99KB0.00%
advanced-custom-fields/assets/images/sprite.png1.50KB1.97KB0.00%