Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼10.19ms] Passed 4 tests
Server-side resources used by Liteweight Podcast
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 45.65 ▼16.45 |
Dashboard /wp-admin | 3.57 ▲0.22 | 53.76 ▼9.79 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.12 ▼3.26 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 87.46 ▼11.25 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.79 ▲2.57 |
Podcasts /wp-admin/edit.php?post_type=podcast | 3.56 | 45.81 |
Add new program /wp-admin/post-new.php?post_type=podcast | 6.16 | 87.34 |
Settings /wp-admin/edit.php?post_type=podcast&page=pdp-settings | 3.43 | 41.54 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 196 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
pdp_option |
pdp_isgutenberg_import |
widget_theysaidso_widget |
can_compress_scripts |
pdp_import |
Browser metrics Passed 4 tests
An overview of browser requirements for Liteweight Podcast
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲172 | 13.58 ▼0.77 | 7.93 ▲5.81 | 42.58 ▼7.98 |
Dashboard /wp-admin | 2,243 ▲63 | 5.59 ▼0.07 | 90.47 ▲1.34 | 38.53 ▼3.67 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.03 ▲0.06 | 38.42 ▲1.56 | 32.41 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 19.10 ▼4.47 | 944.56 ▲282.10 | 40.11 ▼13.43 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.24 ▲0.03 | 98.50 ▼5.27 | 43.26 ▼4.77 |
Podcasts /wp-admin/edit.php?post_type=podcast | 1,328 | 3.68 | 50.40 | 27.85 |
Add new program /wp-admin/post-new.php?post_type=podcast | 11,186 | 24.96 | 1,144.40 | 70.44 |
Settings /wp-admin/edit.php?post_type=podcast&page=pdp-settings | 1,094 | 3.39 | 50.89 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- theysaidso_admin_options
- pdp_isgutenberg_import
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- pdp_option
- widget_recent-posts
- pdp_import
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function PDP\\Model\\add_action() in wp-content/plugins/liteweight-podcast/inc/Model/EnqueueAssets.php:7
- > PHP Warning
Use of undefined constant PDP_PLUGIN_PATH - assumed 'PDP_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/liteweight-podcast/admin/inc/metabox.php on line 3
- > PHP Warning
require_once(PDP_PLUGIN_PATHadmin/framework/framework.php): failed to open stream: No such file or directory in wp-content/plugins/liteweight-podcast/admin/inc/metabox.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'PDP_PLUGIN_PATHadmin/framework/framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/liteweight-podcast/admin/inc/metabox.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function PDP\\Services\\add_shortcode() in wp-content/plugins/liteweight-podcast/inc/Services/Shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/liteweight-podcast/liteweight-podcast.php:14
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/liteweight-podcast/liteweight-podcast.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function PDP\\Model\\add_action() in wp-content/plugins/liteweight-podcast/inc/Model/EnqueueAssets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function PDP\\PostType\\add_action() in wp-content/plugins/liteweight-podcast/inc/PostType/podcast.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=podcast
- > Network (severe)
wp-admin/audio - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #4, #5 in liteweight-podcast/assets to your readme.txt
liteweight-podcast/liteweight-podcast.php Passed 13 tests
"Liteweight Podcast" version 2.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
A lite weight wordpress podcast plugin.
Code Analysis Passed 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
There were no executable files found in this plugin28,675 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 2,682 | 1,125 | 8,444 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Sass | 17 | 963 | 3 | 4,920 |
CSS | 11 | 292 | 478 | 4,189 |
JavaScript | 12 | 1,255 | 353 | 3,989 |
HTML | 2 | 138 | 0 | 864 |
SVG | 4 | 0 | 0 | 89 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 22.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 308 | |
▷ Static methods | 82 | 26.62% |
▷ Public methods | 307 | 99.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.32% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
4 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/default.png | 28.71KB | 21.33KB | ▼ 25.71% |
dist/assets/img/default.png | 28.71KB | 21.33KB | ▼ 25.71% |
admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/icon.png | 1.83KB | 1.27KB | ▼ 30.47% |