84% wp-church-center-rss-syndication

Code Review | WP Church Center: RSS

WordPress plugin WP Church Center: RSS scored84%from 54 tests.

About plugin

  • Plugin page: wp-church-center-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: Mar 16, 2020
  • Number of updates: 3
  • Update frequency: every 241.7 days
  • Top authors: jordesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.92ms] Passed 4 tests

This is a short check of server-side resources used by WP Church Center: RSS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.53 ▲0.37
Dashboard /wp-admin3.34 ▼0.0155.35 ▼9.73
Posts /wp-admin/edit.php3.39 ▲0.0355.50 ▼5.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.50 ▼23.79
Media Library /wp-admin/upload.php3.26 ▲0.0339.31 ▼12.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Church Center: RSS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.23 ▼0.991.69 ▼0.1145.55 ▲0.39
Dashboard /wp-admin2,221 ▲184.90 ▲0.02126.73 ▲10.4555.11 ▲7.82
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0335.42 ▼6.8147.93 ▲11.03
Add New Post /wp-admin/post-new.php1,545 ▲1923.06 ▲5.40688.86 ▼5.2754.87 ▼6.17
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.00102.53 ▼14.0043.44 ▼14.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-church-center-rss-syndication/card.php:130

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No tags were found

wp-church-center-rss-syndication/wpcc-rss.php 85% from 13 tests

The main PHP file in "WP Church Center: RSS" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-church-center-rss-syndication.php" instead of "wpcc-rss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected319 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25635211
CSS10155
LESS114053

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin