83% churchope-theme-icalendar-generator

Code Review | CHURCHOPE Theme iCal Generator

WordPress plugin CHURCHOPE Theme iCal Generator scored83%from 54 tests.

About plugin

  • Plugin page: churchope-theme-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 3, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: derekdata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,057 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.32ms] Passed 4 tests

A check of server-side resources used by CHURCHOPE Theme iCal Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0438.48 ▼5.13
Dashboard /wp-admin3.39 ▲0.0451.69 ▼2.06
Posts /wp-admin/edit.php3.51 ▲0.1048.79 ▼1.96
Add New Post /wp-admin/post-new.php5.97 ▲0.0493.69 ▼0.13
Media Library /wp-admin/upload.php3.31 ▲0.0439.06 ▲3.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by CHURCHOPE Theme iCal Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.51 ▲0.162.16 ▲0.6741.01 ▼1.01
Dashboard /wp-admin2,195 ▲215.51 ▼0.1491.09 ▼2.6142.76 ▼4.52
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0135.46 ▼1.7536.41 ▼0.46
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.33662.41 ▲13.7056.59 ▲6.56
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0397.46 ▼1.1142.04 ▼0.05

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ical-churchope/classes/ChurchopeFunctionProxy.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 21
    • > PHP Warning
      include_once(ical-churchope/classes/WordPressFunctionProxy.php): failed to open stream: No such file or directory in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 22
    • > PHP Warning
      include_once(): Failed opening 'ical-churchope/classes/ChurchopeICalGenerator.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 20
    • > PHP Warning
      include_once(ical-churchope/classes/DateUtils.php): failed to open stream: No such file or directory in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/DateUtilsTest.php on line 20
    • > PHP Warning
      include_once(): Failed opening 'ical-churchope/classes/DateUtils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/DateUtilsTest.php on line 20
    • > PHP Warning
      include_once(ical-churchope/classes/ChurchopeFunctionProxy.php): failed to open stream: No such file or directory in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 21
    • > PHP Warning
      include_once(ical-churchope/classes/ChurchopeICalGenerator.php): failed to open stream: No such file or directory in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 20
    • > PHP Warning
      include_once(): Failed opening 'ical-churchope/classes/WordPressFunctionProxy.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/DateUtilsTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/churchope-theme-icalendar-generator/ical-churchope/test/ChurchopeICalGeneratorTest.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === churchope-theme-icalendar-generator === )
You can look at the official readme.txt

churchope-theme-icalendar-generator/ical-churchope.php 85% from 13 tests

"CHURCHOPE Theme iCal Generator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 218 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("churchope-theme-icalendar-generator.php" instead of "ical-churchope.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 plugin350 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7170261350

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected