83% genesis-sermons-cpt

Code Review | Genesis Sermons CPT

WordPress plugin Genesis Sermons CPT scored83%from 54 tests.

About plugin

  • Plugin page: genesis-sermons-cpt
  • Plugin version: 0.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Mar 19, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 25
  • Update frequency: every 2.8 days
  • Top authors: polishedwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.27ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Sermons CPT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.75 ▼11.99
Dashboard /wp-admin3.31 ▼0.0450.28 ▼17.28
Posts /wp-admin/edit.php3.36 ▲0.0048.58 ▼5.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.62 ▼18.36
Media Library /wp-admin/upload.php3.23 ▲0.0033.02 ▼2.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Sermons CPT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.39 ▲0.111.66 ▼0.2540.53 ▼2.87
Dashboard /wp-admin2,192 ▲155.60 ▼0.0294.41 ▲2.1742.60 ▲0.73
Posts /wp-admin/edit.php2,100 ▲182.02 ▼0.0038.77 ▲1.9536.29 ▲1.39
Add New Post /wp-admin/post-new.php1,531 ▲323.06 ▼0.17662.97 ▲38.0170.69 ▲21.69
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0198.57 ▼5.1444.65 ▲2.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-sermons-cpt/templates/single-sermons.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-sermons-cpt/templates/archive-sermons.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-sermons-cpt/trunk/templates/archive-sermons.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/genesis-sermons-cpt/trunk/templates/single-sermons.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === genesis-sermons-cpt === )
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in genesis-sermons-cpt/assets to your readme.txt
The official readme.txt might help

genesis-sermons-cpt/genesis-sermons-cpt.php 92% from 13 tests

The main file in "Genesis Sermons CPT" v. 0.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin228 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP360144227
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin