Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼10.09ms] Passed 4 tests
Server-side resources used by WS Theme Addons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 40.02 ▼14.99 |
Dashboard /wp-admin | 3.53 ▲0.23 | 47.93 ▲1.22 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 47.94 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 85.78 ▼21.50 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.46 ▼2.23 |
Theme Options /wp-admin/themes.php?page=ws-theme-addons | 3.45 | 31.79 |
Server storage [IO: ▲11.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 566 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_ws-theme-addons-custom-call-to-action |
widget_ws-theme-addons-custom-weather-widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WS Theme Addons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.65 ▼0.75 | 10.62 ▲8.59 | 37.74 ▼5.34 |
Dashboard /wp-admin | 2,212 ▲27 | 4.86 ▼0.16 | 99.83 ▲0.65 | 39.11 ▼3.49 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.05 | 33.79 ▼9.16 | 36.20 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 17.91 ▼5.36 | 642.99 ▼25.66 | 58.06 ▲6.11 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.24 ▼0.03 | 95.51 ▼7.59 | 42.28 ▼5.96 |
Theme Options /wp-admin/themes.php?page=ws-theme-addons | 1,066 | 3.03 | 47.65 | 58.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_ws-theme-addons-custom-call-to-action
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_ws-theme-addons-custom-weather-widget
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ws-theme-addons/inc/frameworks/redux/inc/class.p.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ws-theme-addons/inc/functions-demo-importer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function travel_log_front_page_recommended_posts_content() in wp-content/plugins/ws-theme-addons/templates/template-parts/home/recommended-posts.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ws-theme-addons/inc/modules/widgets/weather-widget/class-weather-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ws-theme-addons/inc/frameworks/redux/templates/panel/header_stickybar.tpl.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/ws-theme-addons/templates/template-parts/home/front-page-widgets.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_front_page() in wp-content/plugins/ws-theme-addons/templates/template-parts/home/slider.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ws-theme-addons/inc/searchbar.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ws-theme-addons/inc/modules/widgets/class-instagram-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/ws-theme-addons/inc/listing-page.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: instagram, theme, widgets, importer
ws-theme-addons/ws-theme-addons.php 92% from 13 tests
This is the main PHP file of "WS Theme Addons" version 2.0.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:
- Domain Path: The domain path folder was not found ("/i18n/languages/")
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
No dangerous file extensions were detected101,973 lines of code in 394 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 6,075 | 7,360 | 28,518 |
CSS | 62 | 2,025 | 658 | 26,597 |
JavaScript | 99 | 3,043 | 2,019 | 18,010 |
Sass | 72 | 1,508 | 103 | 16,187 |
XML | 1 | 115 | 0 | 9,893 |
SVG | 11 | 0 | 9 | 2,051 |
LESS | 3 | 82 | 79 | 715 |
JSON | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 32.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 851.00 |
Average method complexity | 6.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 130 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 130 | 100.00% |
▷ Final classes | 2 | 1.54% |
Methods | 785 | |
▷ Static methods | 127 | 16.18% |
▷ Public methods | 618 | 78.73% |
▷ Protected methods | 106 | 13.50% |
▷ Private methods | 61 | 7.77% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 69 | |
▷ Global constants | 12 | 17.39% |
▷ Class constants | 57 | 82.61% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
88 compressed PNG files occupy 0.88MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/images/cancel-custom-on.png | 0.78KB | 0.83KB | 0.00% |
inc/frameworks/redux/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/frameworks/redux/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/public/img/weather-img/14d.png | 24.89KB | 10.44KB | ▼ 58.04% |
inc/frameworks/redux/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |