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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.57 | 4.82 ▼37.04 |
Dashboard /wp-admin | 2.18 ▼1.38 | 6.76 ▼43.79 |
Posts /wp-admin/edit.php | 2.18 ▼1.50 | 6.08 ▼46.78 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.97 | 6.79 ▼102.78 |
Media Library /wp-admin/upload.php | 2.18 ▼1.31 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.65 ▲0.27 | 1.80 ▲0.03 | 43.63 ▼2.49 |
Dashboard /wp-admin | 2,198 ▲18 | 5.65 ▼0.03 | 93.80 ▲2.34 | 41.05 ▼1.43 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.05 | 37.45 ▼3.91 | 33.63 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,546 ▼3 | 23.35 ▲0.30 | 684.39 ▲61.17 | 55.92 ▲5.05 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.02 | 106.08 ▲5.82 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 109 | 165 |
PO File | 1 | 42 | 42 | 122 |
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 code | 0.18 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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