Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.73MB] [CPU: ▲0.87ms] Passed 4 tests
Analyzing server-side resources used by Podcast Subscribe Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 43.46 ▲3.54 |
Dashboard /wp-admin | 4.13 ▲0.79 | 50.81 ▼11.69 |
Posts /wp-admin/edit.php | 4.21 ▲0.86 | 49.79 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 100.64 ▲8.53 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 45.33 ▲10.47 |
Podcast Subscribe Buttons /wp-admin/edit.php?post_type=secondline_psb_post | 4.10 | 42.31 |
Server storage [IO: ▲5.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 501 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Podcast Subscribe Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.52 ▼0.83 | 9.00 ▲7.46 | 42.25 ▲3.26 |
Dashboard /wp-admin | 2,229 ▲48 | 5.64 ▼0.04 | 83.96 ▼11.76 | 38.59 ▼0.53 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.09 ▲0.09 | 40.40 ▲3.49 | 33.42 ▼5.41 |
Add New Post /wp-admin/post-new.php | 6,401 ▲4,870 | 27.70 ▲4.69 | 876.57 ▲264.76 | 38.91 ▼12.20 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.31 ▲0.07 | 112.74 ▲15.77 | 48.02 ▲5.41 |
Podcast Subscribe Buttons /wp-admin/edit.php?post_type=secondline_psb_post | 1,110 | 2.04 | 33.73 | 31.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/podcast-subscribe-buttons/template-parts/list-button.php
- > /wp-content/plugins/podcast-subscribe-buttons/template-parts/icon-button.php
- > /wp-content/plugins/podcast-subscribe-buttons/template-parts/inline-button.php
- 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/CMB2_Options_Hookup.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/podcast-subscribe-buttons/template-parts/inline-button.php on line 9
- > PHP Notice
Undefined variable: atts in wp-content/plugins/podcast-subscribe-buttons/template-parts/icon-button.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/podcast-subscribe-buttons/includes/CMB2/cmb2-plugin/includes/types/CMB2_Type_Counter_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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #4 is required in podcast-subscribe-buttons/assets to your readme.txt
podcast-subscribe-buttons/podcast-subscribe-buttons.php 92% from 13 tests
This is the main PHP file of "Podcast Subscribe Buttons" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected96,482 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 46,482 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 65 | 2,181 | 6,250 | 7,418 |
CSS | 13 | 277 | 1,192 | 4,665 |
JavaScript | 15 | 402 | 625 | 2,101 |
Sass | 17 | 306 | 29 | 1,411 |
SVG | 49 | 1 | 1 | 1,384 |
Markdown | 2 | 225 | 0 | 698 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 19.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 9 | 13.04% |
▷ Concrete classes | 60 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 544 | |
▷ Static methods | 95 | 17.46% |
▷ Public methods | 452 | 83.09% |
▷ Protected methods | 89 | 16.36% |
▷ Private methods | 3 | 0.55% |
Functions | 36 | |
▷ Named functions | 33 | 91.67% |
▷ Anonymous functions | 3 | 8.33% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
84 PNG files occupy 0.35MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icons/Acast.png | 3.05KB | 2.55KB | ▼ 16.57% |
assets/img/icons/Deezer.png | 5.04KB | 1.68KB | ▼ 66.75% |
assets/img/icons/Anchor.png | 1.71KB | 1.77KB | 0.00% |
assets/img/icons/Gaana.png | 1.06KB | 1.42KB | 0.00% |
assets/img/icons/SoundCarrot.png | 65.24KB | 24.38KB | ▼ 62.63% |