Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.02MB] [CPU: ▼139.31ms] Passed 4 tests
Analyzing server-side resources used by Perelandra Sermons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.93 | 44.48 ▲10.51 |
Dashboard /wp-admin | 4.13 ▲1.07 | 51.93 ▲1.83 |
Posts /wp-admin/edit.php | 4.16 ▲1.06 | 51.17 ▲5.23 |
Add New Post /wp-admin/post-new.php | 6.81 ▲1.38 | 99.45 ▼574.82 |
Media Library /wp-admin/upload.php | 4.01 ▲1.01 | 64.29 ▲30.73 |
Add New /wp-admin/post-new.php?post_type=perelandra_sermon | 4.37 | 64.16 |
All Sermons /wp-admin/edit.php?post_type=perelandra_sermon | 4.07 | 43.23 |
Topics /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_topics&post_type=perelandra_sermon | 4.01 | 39.68 |
Settings /wp-admin/edit.php?post_type=perelandra_sermon&page=sermon_settings | 3.95 | 38.80 |
Speakers /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_speakers&post_type=perelandra_sermon | 4.01 | 41.11 |
Books of the Bible /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_books&post_type=perelandra_sermon | 4.01 | 41.17 |
Series /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_series&post_type=perelandra_sermon | 4.27 | 40.07 |
Server storage [IO: ▲4.29MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 561 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pl_sermons_version |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by Perelandra Sermons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,927 ▲331 | 16.74 ▲0.62 | 23.67 ▲11.71 | 44.81 ▼5.46 |
Dashboard /wp-admin | 3,045 ▲114 | 6.04 ▼0.12 | 151.01 ▼21.59 | 102.71 ▼6.14 |
Posts /wp-admin/edit.php | 2,814 ▲75 | 2.74 ▲0.01 | 75.26 ▲7.35 | 94.58 ▲8.03 |
Add New Post /wp-admin/post-new.php | 1,634 ▼49 | 17.41 ▼1.12 | 438.13 ▲31.57 | 129.24 ▲20.52 |
Media Library /wp-admin/upload.php | 1,882 ▲78 | 5.04 ▲0.02 | 169.07 ▲19.54 | 137.24 ▲19.07 |
Add New /wp-admin/post-new.php?post_type=perelandra_sermon | 2,348 | 2.33 | 41.15 | 76.80 |
All Sermons /wp-admin/edit.php?post_type=perelandra_sermon | 1,509 | 2.65 | 68.22 | 69.23 |
Topics /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_topics&post_type=perelandra_sermon | 1,813 | 2.43 | 62.71 | 81.57 |
Settings /wp-admin/edit.php?post_type=perelandra_sermon&page=sermon_settings | 1,443 | 3.43 | 82.31 | 109.75 |
Speakers /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_speakers&post_type=perelandra_sermon | 1,816 | 2.43 | 68.30 | 76.04 |
Books of the Bible /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_books&post_type=perelandra_sermon | 1,816 | 2.43 | 69.42 | 81.97 |
Series /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_series&post_type=perelandra_sermon | 1,233 | 2.12 | 34.12 | 70.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- recovery_mode_email_last_sent
- pl_sermons_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=perelandra_sermon
- > Compile error in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_Oembed.php+15
Declaration of CMB2_Type_Oembed::render() must be compatible with CMB2_Type_Text::render($args = Array)
- > GET request to /wp-admin/edit.php?post_type=perelandra_sermon&page=sermon_settings
- > Notice in wp-content/plugins/perelandra-sermons/includes/class-pl-settings.php+375
Undefined variable: class
- > GET request to /wp-admin/edit-tags.php?taxonomy=perelandra_sermon_series&post_type=perelandra_sermon
- > Compile error in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_File.php+15
Declaration of CMB2_Type_File::render() must be compatible with CMB2_Type_Text::render($args = Array)
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
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/perelandra-sermons/templates/loop/wrapper-end.php
- > /wp-content/plugins/perelandra-sermons/templates/global/wrapper-start.php
- > /wp-content/plugins/perelandra-sermons/templates/loop/wrapper-start.php
- > /wp-content/plugins/perelandra-sermons/templates/loop/footer.php
- > /wp-content/plugins/perelandra-sermons/templates/global/wrapper-end.php
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/perelandra-sermons/templates/taxonomy-series.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/perelandra-sermons/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function pl_get_option() in wp-content/plugins/perelandra-sermons/views/feed.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/perelandra-sermons/templates/loop/header.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/perelandra-sermons/templates/single-sermon/meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/perelandra-sermons/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: sermons, church sermon manager, sermon media, church sermons, church plugin...
perelandra-sermons/perelandra-sermons.php 92% from 13 tests
The main PHP script in "Perelandra Sermons" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin68,790 lines of code in 394 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 124 | 15,204 | 19,321 | 35,195 |
PHP | 165 | 5,746 | 13,474 | 22,482 |
CSS | 27 | 1,233 | 1,103 | 5,631 |
Sass | 28 | 505 | 107 | 2,787 |
JavaScript | 12 | 287 | 327 | 1,190 |
Markdown | 9 | 248 | 0 | 716 |
SVG | 22 | 0 | 22 | 597 |
JSON | 4 | 0 | 0 | 90 |
HTML | 1 | 7 | 0 | 74 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,019)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 25.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 106 | |
▷ Abstract classes | 10 | 9.43% |
▷ Concrete classes | 96 | 90.57% |
▷ Final classes | 0 | 0.00% |
Methods | 1,145 | |
▷ Static methods | 160 | 13.97% |
▷ Public methods | 899 | 78.52% |
▷ Protected methods | 80 | 6.99% |
▷ Private methods | 166 | 14.50% |
Functions | 125 | |
▷ Named functions | 125 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 106 | |
▷ Global constants | 83 | 78.30% |
▷ Class constants | 23 | 21.70% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 compressed PNG files occupy 0.44MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |