90% bible-readings-for-seriously-simple

Code Review | Bible Readings for Seriously Simple Podcasting

WordPress plugin Bible Readings for Seriously Simple Podcasting scored90%from 54 tests.

About plugin

  • Plugin page: bible-readings-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2019
  • Latest release: Oct 28, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,325 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.59ms] Passed 4 tests

Server-side resources used by Bible Readings for Seriously Simple Podcasting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.67 ▲8.56
Dashboard /wp-admin3.32 ▼0.0348.16 ▼10.05
Posts /wp-admin/edit.php3.37 ▲0.0145.84 ▲4.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.67 ▼18.48
Media Library /wp-admin/upload.php3.24 ▲0.0135.51 ▲1.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Bible Readings for Seriously Simple Podcasting
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.421.99 ▲0.2944.89 ▲1.79
Dashboard /wp-admin2,206 ▲214.87 ▼0.99113.13 ▲5.8244.02 ▲6.62
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0239.97 ▲1.2233.13 ▼1.83
Add New Post /wp-admin/post-new.php1,533 ▲2023.40 ▲5.90665.94 ▲40.1248.34 ▼5.01
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0797.44 ▼1.9241.77 ▼1.13

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: bible, podcasting, seriously simple podcasting, sermons, reading...

bible-readings-for-seriously-simple/bible-readings-for-seriously-simple-podcasting.php 92% from 13 tests

The main PHP script in "Bible Readings for Seriously Simple Podcasting" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bible-readings-for-seriously-simple.php" instead of "bible-readings-for-seriously-simple-podcasting.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
Good job! No executable or dangerous file extensions detected187 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55799187

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.50
▷ Minimum class complexity4.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods325.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
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
There were not PNG files found in your plugin