10% christian-science-bible-lesson-subjects

Code Review | Christian Science Bible Lesson Subjects

WordPress plugin Christian Science Bible Lesson Subjects scored10%from 54 tests.

About plugin

  • Plugin page: christian-science...
  • Plugin version: 1.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2010
  • Latest release: Jun 14, 2022
  • Number of updates: 49
  • Update frequency: every 89.5 days
  • Top authors: gserafini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,847 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/christian-science-bible-lesson-subjects/cs-subject-of-the-week.php+252
    Methods with the same name as their class will not be constructors in a future version of PHP; STP_CS_Bible_Lesson_Topics has a deprecated constructor

Server metrics [RAM: ▼2.10MB] [CPU: ▼57.61ms] Passed 4 tests

This is a short check of server-side resources used by Christian Science Bible Lesson Subjects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.574.82 ▼37.04
Dashboard /wp-admin2.18 ▼1.386.76 ▼43.79
Posts /wp-admin/edit.php2.18 ▼1.506.08 ▼46.78
Add New Post /wp-admin/post-new.php2.18 ▼3.976.79 ▼102.78
Media Library /wp-admin/upload.php2.18 ▼1.314.93 ▼37.09

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_widget-stpcslessonsubject
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Christian Science Bible Lesson Subjects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.65 ▲0.271.80 ▲0.0343.63 ▼2.49
Dashboard /wp-admin2,198 ▲185.65 ▼0.0393.80 ▲2.3441.05 ▼1.43
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0537.45 ▼3.9133.63 ▼3.56
Add New Post /wp-admin/post-new.php1,546 ▼323.35 ▲0.30684.39 ▲61.1755.92 ▲5.05
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.02106.08 ▲5.8245.49 ▼0.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/christian-science-bible-lesson-subjects/cs-subject-of-the-week.php+252
    Methods with the same name as their class will not be constructors in a future version of PHP; STP_CS_Bible_Lesson_Topics has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_widget-stpcslessonsubject
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/christian-science-bible-lesson-subjects/cs-subject-of-the-week.php:187

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: cs, christian science, widget, plugin, church...

christian-science-bible-lesson-subjects/cs-subject-of-the-week.php 85% from 13 tests

"Christian Science Bible Lesson Subjects" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 198 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("christian-science-bible-lesson-subjects.php" instead of "cs-subject-of-the-week.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin287 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181109165
PO File14242122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected