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
This plugin's installer ran successfully
Server metrics [RAM: ▼1.54MB] [CPU: ▼187.77ms] Passed 4 tests
An overview of server-side resources used by Sermon Manager Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼0.75 | 6.83 ▼29.25 |
Dashboard /wp-admin | 2.11 ▼0.95 | 8.03 ▼35.71 |
Posts /wp-admin/edit.php | 2.11 ▼1.00 | 8.36 ▼37.90 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.33 | 7.06 ▼648.21 |
Media Library /wp-admin/upload.php | 2.11 ▼0.89 | 8.06 ▼26.72 |
Import Settings /wp-admin/plugins.php?page=sermon-manager-import-options | 2.11 | 6.66 |
Import Sermons /wp-admin/plugins.php?page=sermon-manager-import | 2.11 | 7.75 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 160 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Sermon Manager Import: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲124 | 15.94 ▲0.43 | 9.08 ▼2.06 | 45.40 ▼0.71 |
Dashboard /wp-admin | 2,977 ▲43 | 5.91 ▼0.11 | 139.83 ▼16.28 | 108.86 ▼3.64 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.72 ▲0.01 | 66.73 ▲0.13 | 85.24 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,683 ▼2,004 | 18.68 ▲3.54 | 399.44 ▼129.64 | 109.41 ▲0.80 |
Media Library /wp-admin/upload.php | 1,824 ▲14 | 5.00 ▼0.05 | 150.47 ▼1.05 | 122.10 ▼9.93 |
Import Settings /wp-admin/plugins.php?page=sermon-manager-import-options | 1,600 | 2.10 | 58.57 | 86.48 |
Import Sermons /wp-admin/plugins.php?page=sermon-manager-import | 1,134 | 2.38 | 52.30 | 58.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/sermon-manager-import/class-sermon-manager-import.php+945
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=sermon-manager-import
- > Notice in wp-content/plugins/sermon-manager-import/class-sermon-manager-import.php+945
Trying to access array offset on value of type bool
- > GET request to /wp-admin/plugins.php?page=sermon-manager-import-options
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=sermon-manager-import-options
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=sermon-manager-import-options
- > Notice in wp-content/plugins/sermon-manager-import/views/options.php+390
Trying to get property 'name' of non-object
SRP 50% from 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
The following issues need your attention
- 126× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sermon-manager-import/views/options.php:400
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.graphic.png.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/sermon-manager-import/trunk/assets/getid3/module.audio.la.php:17
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio.ogg.php:17
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.misc.par2.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio.rkau.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio.lpac.php:17
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio.au.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio.wavpack.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/sermon-manager-import/assets/getid3/module.audio-video.flv.php:76
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
10 plugin tags: sermon manager, podcast, mp3, podcasting, sermon...
sermon-manager-import/sermon-manager-import.php 92% from 13 tests
The primary PHP file in "Sermon Manager Import" version 0.2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin24,622 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 4,762 | 7,406 | 24,566 |
CSS | 1 | 8 | 0 | 33 |
JavaScript | 1 | 4 | 26 | 23 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 392)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 69.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 543.00 |
Average method complexity | 9.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 392.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 142 | |
▷ Abstract classes | 2 | 1.41% |
▷ Concrete classes | 140 | 98.59% |
▷ Final classes | 0 | 0.00% |
Methods | 1,094 | |
▷ Static methods | 396 | 36.20% |
▷ Public methods | 1,024 | 93.60% |
▷ Protected methods | 16 | 1.46% |
▷ Private methods | 54 | 4.94% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 474 | |
▷ Global constants | 438 | 92.41% |
▷ Class constants | 36 | 7.59% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/screenshot-1.png | 75.15KB | 28.16KB | ▼ 62.53% |
trunk/screenshot-2.png | 7.91KB | 4.06KB | ▼ 48.70% |
screenshot-2.png | 7.91KB | 4.06KB | ▼ 48.70% |
trunk/screenshot-3.png | 64.33KB | 28.56KB | ▼ 55.60% |
screenshot-1.png | 75.15KB | 28.16KB | ▼ 62.53% |