84% planning-center-online-giving

Code Review | Planning Center Online Giving

WordPress plugin Planning Center Online Giving scored84%from 54 tests.

About plugin

  • Plugin page: planning-center-o...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Nov 14, 2017
  • Latest release: Nov 17, 2017
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: wpchurchteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,272 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: ▲0.03MB] [CPU: ▲0.02ms] Passed 4 tests

Analyzing server-side resources used by Planning Center Online Giving
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.92 ▲0.54
Dashboard /wp-admin3.34 ▲0.0351.38 ▲1.02
Posts /wp-admin/edit.php3.39 ▲0.0348.77 ▼1.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.47 ▼0.21
Media Library /wp-admin/upload.php3.26 ▲0.0340.21 ▲5.27
Planning Center Online Giving /wp-admin/options-general.php?page=pco-giving-options3.2334.91

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Planning Center Online Giving
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.21 ▼1.371.81 ▲0.0937.33 ▼6.58
Dashboard /wp-admin2,225 ▲245.83 ▲0.7997.77 ▼43.4637.92 ▼20.31
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0240.22 ▲3.0335.98 ▲1.61
Add New Post /wp-admin/post-new.php1,549 ▲423.12 ▲0.00665.72 ▲0.5454.06 ▲2.59
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.03106.94 ▲2.8645.26 ▼1.20
Planning Center Online Giving /wp-admin/options-general.php?page=pco-giving-options8692.1422.9537.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • 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 everything seems fine, this is not an exhaustive test

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/planning-center-online-giving/shortcode.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/planning-center-online-giving/settings.php:137

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
There were no plugin tags found

planning-center-online-giving/planning-center-online-giving.php 92% from 13 tests

Analyzing the main PHP file in "Planning Center Online Giving" version 1.0.0
It is important to fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34430144
Markdown1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin