Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲2.16MB] [CPU: ▼278.33ms] Passed 4 tests
Server-side resources used by wGauge - Free Version
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.62 ▲2.11 | 65.36 ▲13.22 |
Dashboard /wp-admin | 5.63 ▲2.22 | 48.07 ▲15.16 |
Posts /wp-admin/edit.php | 5.87 ▲2.23 | 52.49 ▲15.04 |
Add New Post /wp-admin/post-new.php | 9.08 ▲2.11 | 108.78 ▼1,153.11 |
Media Library /wp-admin/upload.php | 5.50 ▲2.20 | 35.44 ▲11.53 |
Freemius Debug [v.1.2.2.9] /wp-admin/admin.php?page=freemius | 5.60 | 37.43 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 199 new files
Database: 1 new table, 5 new options
New tables |
---|
wp_wg_feedback |
New WordPress options |
---|
fs_accounts |
fs_api_cache |
wg_attention_msg |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for wGauge - Free Version
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,145 ▲401 | 18.79 ▲3.01 | 10.08 ▲2.82 | 2.26 ▲0.04 |
Dashboard /wp-admin | 3,160 ▲299 | 8.13 ▲1.89 | 161.44 ▲30.25 | 172.29 ▲13.79 |
Posts /wp-admin/edit.php | 2,990 ▲302 | 5.75 ▲2.52 | 90.67 ▲26.59 | 155.34 ▲11.42 |
Add New Post /wp-admin/post-new.php | 1,746 ▲85 | 17.27 ▲0.45 | 439.27 ▼14.29 | 183.17 ▲26.52 |
Media Library /wp-admin/upload.php | 1,773 ▲75 | 6.85 ▲1.37 | 118.61 ▼23.13 | 201.94 ▲17.35 |
Freemius Debug [v.1.2.2.9] /wp-admin/admin.php?page=freemius | 1,687 | 5.35 | 82.34 | 127.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_wg_feedback
- Zombie WordPress options were found after uninstall: 5 options
- fs_api_cache
- wg_attention_msg
- fs_accounts
- fs_debug_mode
- fs_active_plugins
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=freemius
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wgauge/admin/class-wgauge-admin.php+264
Undefined index: page
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wgauge/public/partials/wgauge-public-display.php
- > /wp-content/plugins/wgauge/freemius/templates/ajax-loader.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wgauge/admin/partials/wgauge-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wgauge/public/partials/wgauge-ui.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=freemius
- > Javascript (severe) in unknown
/wp-content/plugins/wgauge/admin/js/wgauge-admin.js?ver=1.0.0 141:72 Uncaught TypeError: Cannot read properties of null (reading 'getContext')
- > GET request to /wp-admin/admin.php?page=freemius
- > Javascript (severe) in unknown
/wp-content/plugins/wgauge/admin/js/wgauge-admin.js?ver=1.0.0 265:72 Uncaught TypeError: Cannot read properties of null (reading 'getContext')
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Donate link: Invalid url: ""
- Screenshots: Screenshot #1 (The wGauge admin monitor) image missing
- Tags: There are too many tags (12 tag instead of maximum 10)
wgauge/wgauge.php Passed 13 tests
"wGauge - Free Version" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Gather user experience feedback and explore the results
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin28,743 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 4,369 | 10,729 | 18,745 |
PO File | 5 | 2,140 | 2,163 | 4,830 |
Sass | 20 | 329 | 76 | 2,091 |
JavaScript | 8 | 387 | 244 | 1,859 |
CSS | 13 | 60 | 41 | 930 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 40 |
YAML | 2 | 2 | 0 | 28 |
SVG | 3 | 0 | 0 | 6 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,264)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 44.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,264.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 799 | |
▷ Static methods | 127 | 15.89% |
▷ Public methods | 603 | 75.47% |
▷ Protected methods | 14 | 1.75% |
▷ Private methods | 182 | 22.78% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 85 | 81.73% |
▷ Class constants | 19 | 18.27% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/select-arrow.png | 0.12KB | 0.15KB | 0.00% |
public/partials/img/logo-sml.png | 4.68KB | 2.66KB | ▼ 43.22% |
admin/img/menu.png | 0.89KB | 0.64KB | ▼ 27.88% |
admin/img/logo-big.png | 13.78KB | 6.36KB | ▼ 53.83% |
admin/img/premium-frame.png | 0.95KB | 0.64KB | ▼ 32.48% |