Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.46ms] Passed 4 tests
Server-side resources used by Podlove Podcast Publisher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.39 ▼8.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.35 ▼12.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.90 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.49 ▼15.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.30 ▲1.34 |
Server storage [IO: ▲16.43MB] [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: 1,862 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Podlove Podcast Publisher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▲0.16 | 1.74 ▼0.04 | 38.46 ▼6.13 |
Dashboard /wp-admin | 2,195 ▲17 | 5.61 ▼0.05 | 91.95 ▼23.86 | 40.04 ▼2.41 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.12 | 37.63 ▼4.60 | 36.90 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.76 ▲0.55 | 691.29 ▼5.87 | 54.35 ▲0.96 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.03 | 93.72 ▼6.68 | 42.45 ▼1.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/ajax/ajax.analytics_global_total_downloads_by_show.html.php
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/mustangostang/spyc/examples/yaml-load.php
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/donation_banner.html.php
- > /wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/examples/yaml-load.php
- 780× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/symfony/yaml/Inline.php on line 192
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/scripts_and_styles.php:15
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Podlove\\Model\\Base' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/lib/model/geo_area_name.php:5
- > PHP Fatal error
Uncaught Error: Class 'PodlovePublisher_Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/monolog/src/Monolog/Handler/MongoDBHandler.php:33
- > PHP Fatal error
Uncaught Error: Class 'PodlovePublisher_Vendor\\PHPUnit_Framework_TestCase' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor-prefixed/matomo/mustangostang/spyc/tests/IndentTest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeviceDetector\\Cache\\CacheInterface' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/matomo/device-detector/Cache/DoctrineBridge.php:17
- > PHP Fatal error
Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/podlove-podcasting-plugin-for-wordpress/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:14
- > PHP Parse 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 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
podlove-podcasting-plugin-for-wordpress/podlove.php 92% from 13 tests
The principal PHP file in "Podlove Podcast Publisher" v. 4.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("podlove-podcasting-plugin-for-wordpress.php" instead of "podlove.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin201,218 lines of code in 1,312 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,068 | 15,271 | 30,402 | 91,996 |
YAML | 34 | 6,041 | 5,101 | 79,097 |
JavaScript | 70 | 2,427 | 5,255 | 12,532 |
CSS | 17 | 417 | 163 | 3,797 |
Markdown | 30 | 1,560 | 0 | 3,517 |
JSON | 4 | 0 | 0 | 3,394 |
Vuejs Component | 24 | 314 | 38 | 2,770 |
SVG | 13 | 4 | 4 | 1,826 |
Twig | 21 | 82 | 12 | 934 |
C | 1 | 118 | 25 | 668 |
XML | 11 | 37 | 16 | 343 |
HTML | 13 | 15 | 1 | 229 |
Bourne Shell | 1 | 18 | 0 | 38 |
TypeScript | 3 | 10 | 0 | 37 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 193 | |
Interfaces | 45 | |
Traits | 16 | |
Classes | 890 | |
▷ Abstract classes | 42 | 4.72% |
▷ Concrete classes | 848 | 95.28% |
▷ Final classes | 74 | 8.73% |
Methods | 5,677 | |
▷ Static methods | 876 | 15.43% |
▷ Public methods | 4,467 | 78.69% |
▷ Protected methods | 583 | 10.27% |
▷ Private methods | 627 | 11.04% |
Functions | 1,028 | |
▷ Named functions | 388 | 37.74% |
▷ Anonymous functions | 640 | 62.26% |
Constants | 358 | |
▷ Global constants | 21 | 5.87% |
▷ Class constants | 337 | 94.13% |
▷ Public constants | 259 | 76.85% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
443 PNG files occupy 2.81MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/modules/subscribe_button/js/dist/images/ios/sleekcast@1x.png | 2.06KB | 1.63KB | ▼ 21.24% |
lib/modules/social/images/icons/scopus.png | 12.30KB | 7.62KB | ▼ 38.04% |
lib/modules/subscribe_button/js/dist/images/windows/podscout@3x.png | 7.13KB | 3.11KB | ▼ 56.44% |
lib/modules/subscribe_button/js/dist/images/osx/instacast@2x.png | 4.33KB | 2.67KB | ▼ 38.44% |
lib/modules/subscribe_button/js/dist/images/android/podkicker@2x.png | 11.01KB | 3.50KB | ▼ 68.23% |