Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼15.96ms] Passed 4 tests
This is a short check of server-side resources used by Youneeq Recommendations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 52.59 ▲14.32 |
Dashboard /wp-admin | 3.85 ▲0.50 | 46.35 ▼14.72 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 49.34 ▲2.04 |
Add New Post /wp-admin/post-new.php | 3.64 ▼2.25 | 38.72 ▼55.97 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 38.79 ▲4.82 |
Support /wp-admin/admin.php?page=youneeq-support | 3.69 | 33.16 |
Dashboard /wp-admin/admin.php?page=youneeq-dashboard | 3.68 | 30.53 |
Youneeq /wp-admin/admin.php?page=youneeq-settings | 3.85 | 44.11 |
Server storage [IO: ▲0.33MB] [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: 49 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
category_children |
widget_theysaidso_widget |
widget_youneeq_explorer |
theysaidso_admin_options |
widget_recent-comments |
widget_youneeq_recommender |
widget_youneeq_search |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Youneeq Recommendations
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲204 | 13.77 ▼0.85 | 9.76 ▲8.10 | 38.56 ▼1.36 |
Dashboard /wp-admin | 2,261 ▲83 | 5.57 ▼0.05 | 84.76 ▼14.39 | 37.85 ▼3.49 |
Posts /wp-admin/edit.php | 2,170 ▲67 | 1.96 ▼0.04 | 40.88 ▲4.95 | 34.41 ▼0.23 |
Add New Post /wp-admin/post-new.php | 6,342 ▲4,816 | 18.73 ▼4.43 | 826.65 ▲161.84 | 55.21 ▼10.12 |
Media Library /wp-admin/upload.php | 1,466 ▲63 | 4.20 ▲0.05 | 97.62 ▼1.84 | 43.35 ▼1.90 |
Support /wp-admin/admin.php?page=youneeq-support | 1,058 | 2.04 | 24.04 | 30.73 |
Dashboard /wp-admin/admin.php?page=youneeq-dashboard | 936 | 2.20 | 23.64 | 25.81 |
Youneeq /wp-admin/admin.php?page=youneeq-settings | 1,721 | 3.22 | 38.37 | 65.27 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- widget_youneeq_search
- can_compress_scripts
- theysaidso_admin_options
- category_children
- widget_youneeq_explorer
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_youneeq_recommender
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/youneeq-panel/youneeq-panel.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: youneeq, widget, recommendations
youneeq-panel/youneeq-panel.php 92% from 13 tests
The principal PHP file in "Youneeq Recommendations" v. 3.0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,880 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 454 | 1,661 | 2,602 |
TypeScript | 4 | 200 | 480 | 1,157 |
Sass | 2 | 18 | 0 | 94 |
JSON | 1 | 0 | 0 | 16 |
JavaScript | 6 | 0 | 6 | 6 |
CSS | 3 | 0 | 2 | 3 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 73 | 51.41% |
▷ Public methods | 89 | 62.68% |
▷ Protected methods | 34 | 23.94% |
▷ Private methods | 19 | 13.38% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 21 | |
▷ Global constants | 1 | 4.76% |
▷ Class constants | 20 | 95.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_444444_256x240.png | 0.26KB | 0.27KB | 0.00% |
img/yq-logo.png | 7.54KB | 4.95KB | ▼ 34.36% |
css/images/ui-icons_555555_256x240.png | 0.26KB | 0.27KB | 0.00% |