Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲1.49ms] Passed 4 tests
This is a short check of server-side resources used by WP Prayer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.65 | 44.39 ▲9.60 |
Dashboard /wp-admin | 3.98 ▲0.68 | 48.56 ▼2.16 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 52.08 ▲2.63 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 87.76 ▼2.94 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 42.49 ▲8.42 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_prayer_comment |
wp_prayer_users |
wp_prayer_engine |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Prayer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲193 | 13.33 ▼0.86 | 8.73 ▲7.02 | 43.63 ▲5.31 |
Dashboard /wp-admin | 2,256 ▲76 | 5.63 ▼0.01 | 90.64 ▼7.19 | 37.85 ▼0.00 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.00 ▲0.05 | 40.91 ▲0.58 | 36.09 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.56 ▲0.35 | 657.43 ▲17.77 | 50.98 ▼3.74 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.33 ▲0.20 | 98.51 ▼2.70 | 43.55 ▲1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_prayer_engine
- wp_prayer_users
- wp_prayer_comment
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-prayer/wp-prayer-engine.php
- > /wp-content/plugins/wp-prayer/core/captcha.php
- > /wp-content/plugins/wp-prayer/comment.php
- > /wp-content/plugins/wp-prayer/modules/export/views/prayers.php
- > /wp-content/plugins/wp-prayer/modules/shortcode/views/ajax_response.php
- 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-prayer/modules/email_settings/views/manage.php:70
- > PHP Fatal error
Uncaught Error: Class 'AbstractFactoryFlipperCode' not found in wp-content/plugins/wp-prayer/core/class.controller-factory.php:15
- > PHP Notice
Undefined variable: export_table_records in wp-content/plugins/wp-prayer/modules/export/prayers_export_pdf.php on line 77
- > PHP Fatal error
Uncaught Error: Class 'FlipperCode_WPE_Model_Base' not found in wp-content/plugins/wp-prayer/modules/settings/model.settings.php:14
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-prayer/core/class.tabular.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-prayer/modules/shortcode/views/wp-prayer-engine-form.php:14
- > PHP Fatal error
Uncaught Error: Class 'FlipperCode_WPE_Model_Base' not found in wp-content/plugins/wp-prayer/modules/email_settings/model.email_settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'FactoryModelWPE' not found in wp-content/plugins/wp-prayer/modules/shortcode/views/wp-prayer-praise.php:10
- > PHP Fatal error
Uncaught Error: Class 'FlipperCode_WPE_Model_Base' not found in wp-content/plugins/wp-prayer/modules/export/model.export.php:15
- > PHP Fatal error
Uncaught Error: Class 'FlipperCode_WPE_Model_Base' not found in wp-content/plugins/wp-prayer/modules/overview/model.overview.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: prayer, ministry, pray, bible, church
wp-prayer/wp-prayer-engine.php 92% from 13 tests
Analyzing the main PHP file in "WP Prayer" version 2.0.8
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-prayer.php" instead of "wp-prayer-engine.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,778 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 3,177 | 1,724 | 6,372 |
CSS | 3 | 186 | 9 | 269 |
JavaScript | 3 | 20 | 14 | 75 |
SVG | 5 | 4 | 0 | 62 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 47.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 219 | |
▷ Static methods | 42 | 19.18% |
▷ Public methods | 188 | 85.84% |
▷ Protected methods | 23 | 10.50% |
▷ Private methods | 8 | 3.65% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 20 | |
▷ Global constants | 18 | 90.00% |
▷ Class constants | 2 | 10.00% |
▷ Public constants | 2 | 100.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 are no PNG files in this plugin