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: ▲0.49MB] [CPU: ▲36.41ms] Passed 4 tests
Analyzing server-side resources used by WDS Themes Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 78.29 ▲37.04 |
Dashboard /wp-admin | 3.83 ▲0.52 | 87.87 ▲34.23 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 85.50 ▲39.24 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 129.78 ▲35.14 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 95.41 ▲60.40 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 94 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wdstm_base |
New WordPress options |
---|
wdstm_order_filter |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
wdstm_default_theme |
theysaidso_admin_options |
wdstm_sign_db_version |
widget_theysaidso_widget |
wdstm-activate-plugin |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WDS Themes Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲98 | 13.55 ▼1.04 | 2.38 ▲0.52 | 37.18 ▼3.47 |
Dashboard /wp-admin | 2,261 ▲70 | 5.45 ▲0.56 | 120.56 ▲19.71 | 44.14 ▼2.50 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.51 ▲0.52 | 40.05 ▲0.83 | 30.55 ▼6.39 |
Add New Post /wp-admin/post-new.php | 1,720 ▲178 | 21.86 ▲3.50 | 690.55 ▲52.45 | 38.13 ▼19.61 |
Media Library /wp-admin/upload.php | 1,446 ▲64 | 4.68 ▲0.54 | 101.63 ▲4.27 | 43.63 ▼0.48 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wds-themes-manager/wds-themes-manager.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wds-themes-manager/includes/wdstm_ajax.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/LanguageDetector.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/OsDetector.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/DeviceDetector.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wds-themes-manager/includes/wdstm_datepicker.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/BrowserDetector.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: theme manager, theme styling, wordpress theme, custom theme, theme...
wds-themes-manager/wds-themes-manager.php 92% from 13 tests
"WDS Themes Manager" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,004 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 970 | 1,696 | 4,594 |
CSS | 6 | 231 | 40 | 1,428 |
JavaScript | 5 | 131 | 113 | 833 |
JSON | 3 | 0 | 0 | 91 |
SVG | 2 | 24 | 1 | 58 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 28.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 71 | 42.77% |
▷ Public methods | 142 | 85.54% |
▷ Protected methods | 2 | 1.20% |
▷ Private methods | 22 | 13.25% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 79 | |
▷ Global constants | 5 | 6.33% |
▷ Class constants | 74 | 93.67% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 compressed PNG files occupy 0.47MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-10.png | 35.28KB | 35.88KB | 0.00% |
Screenshot-12.png | 28.80KB | 28.85KB | 0.00% |
Screenshot-0.png | 27.89KB | 27.99KB | 0.00% |
Screenshot-5.png | 35.74KB | 36.74KB | 0.00% |
assets/css/images/ui-icons_cc0000_256x240.png | 3.19KB | 3.49KB | 0.00% |