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.08MB] [CPU: ▼174.09ms] Passed 4 tests
This is a short check of server-side resources used by wix.cx Monetization
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 2,277.30 ▲2,253.91 |
Dashboard /wp-admin | 3.13 ▲0.07 | 53.56 ▲5.56 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 49.51 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 102.52 ▼699.74 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 37.83 ▼4.54 |
Wix Monetize your website /wp-admin/options-general.php?page=wix-website-monetization | 3.09 | 33.16 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 19 new options
New WordPress options |
---|
wix_fps_enabled |
wix_token |
wix_fps_capping_timeout |
wix_us_capping_timeout |
wix_email |
wix_fps_capping_enabled |
wix_pop_enabled |
wix_us_timeout |
wix_email_changed |
wix_us_capping_limit |
... |
Browser metrics Passed 4 tests
A check of browser resources used by wix.cx Monetization
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,831 ▲194 | 16.55 ▲0.53 | 16.43 ▲4.12 | 54.21 ▲0.57 |
Dashboard /wp-admin | 2,997 ▲63 | 6.01 ▲0.02 | 147.14 ▼14.65 | 128.71 ▲15.33 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 67.68 ▼0.82 | 95.31 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,686 ▲80 | 18.12 ▼0.48 | 404.09 ▲2.32 | 113.06 ▼2.36 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.05 ▲0.04 | 169.81 ▲8.14 | 125.37 ▼3.04 |
Wix Monetize your website /wp-admin/options-general.php?page=wix-website-monetization | 1,311 | 2.36 | 62.01 | 89.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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- wix_api_ready
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'wix_Monetization' not found in wp-content/plugins/loks-monetization/views/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'wix_Monetization' not found in wp-content/plugins/loks-monetization/views/public.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: monetization, traffic
loks-monetization/wix-website-monetization.php 85% from 13 tests
"wix.cx Monetization" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("loks-monetization.php" instead of "wix-website-monetization.php")
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
Everything looks great! No dangerous files found in this plugin890 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 114 | 295 | 437 |
CSS | 2 | 36 | 3 | 259 |
PO File | 1 | 31 | 35 | 94 |
SVG | 1 | 0 | 1 | 56 |
JavaScript | 2 | 12 | 1 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 11 | 44.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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
8 PNG files occupy 0.13MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 114.90KB | 28.40KB | ▼ 75.28% |
assets/on.png | 0.98KB | 0.10KB | ▼ 90.26% |
assets/slider_right.png | 0.91KB | 0.08KB | ▼ 91.00% |
assets/ninjahead.png | 15.19KB | 0.81KB | ▼ 94.64% |
assets/switch-round.png | 1.73KB | 0.63KB | ▼ 63.81% |