Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.59MB] [CPU: ▲8.69ms] Passed 4 tests
An overview of server-side resources used by Weluka Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 54.06 ▲12.06 |
Dashboard /wp-admin | 4.98 ▲1.68 | 60.98 ▲13.21 |
Posts /wp-admin/edit.php | 4.98 ▲1.63 | 67.60 ▲20.27 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.52 | 109.74 ▼1.06 |
Media Library /wp-admin/upload.php | 4.98 ▲1.76 | 47.03 ▲10.54 |
Weluka /wp-admin/admin.php?page=weluka_options | 4.98 | 45.90 |
Seo Setting /wp-admin/admin.php?page=weluka_seo | 4.98 | 56.29 |
Server storage [IO: ▲2.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Weluka Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,146 ▲385 | 15.06 ▲0.79 | 11.87 ▲10.22 | 43.77 ▲2.55 |
Dashboard /wp-admin | 2,364 ▲183 | 6.15 ▲0.44 | 108.20 ▼1.87 | 38.98 ▼3.78 |
Posts /wp-admin/edit.php | 2,292 ▲189 | 3.43 ▲1.40 | 44.45 ▲4.68 | 29.15 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.46 ▲0.04 | 658.66 ▲10.78 | 36.48 ▼20.00 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.11 ▼0.07 | 78.70 ▼30.73 | 44.81 ▼1.21 |
Weluka /wp-admin/admin.php?page=weluka_options | 1,063 | 3.03 | 39.36 | 24.83 |
Seo Setting /wp-admin/admin.php?page=weluka_seo | 1,171 | 3.05 | 43.18 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WelukaBuilder' not found in wp-content/plugins/weluka-lite/includes/builder-snippets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/weluka-lite/uninstall.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Builder main interface.), #2 (Builder colum setting.), #3 (Option setting.)
- Donate link: Invalid URI found ("")
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
weluka-lite/weluka.php 85% from 13 tests
This is the main PHP file of "Weluka Lite" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("weluka-lite.php" instead of "weluka.php")
- 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 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin11,928 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,004 | 1,382 | 8,524 |
JavaScript | 12 | 45 | 91 | 1,293 |
SVG | 2 | 0 | 0 | 943 |
PO File | 1 | 739 | 1,464 | 861 |
CSS | 7 | 51 | 22 | 307 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,445)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 444.75 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 1,445.00 |
Average method complexity | 9.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 203 | |
▷ Static methods | 25 | 12.32% |
▷ Public methods | 199 | 98.03% |
▷ Protected methods | 1 | 0.49% |
▷ Private methods | 3 | 1.48% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 75 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 75 | 100.00% |
▷ Public constants | 75 | 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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/bootstrap-colorpicker/img/bootstrap-colorpicker/alpha.png | 3.19KB | 1.68KB | ▼ 47.45% |
assets/js/bootstrap-colorpicker/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
assets/js/bootstrap-colorpicker/img/bootstrap-colorpicker/alpha-horizontal.png | 3.55KB | 1.62KB | ▼ 54.44% |
assets/js/bootstrap-colorpicker/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
assets/js/bootstrap-colorpicker/img/bootstrap-colorpicker/hue-horizontal.png | 2.77KB | 0.47KB | ▼ 83.15% |