Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼141.05ms] Passed 4 tests
Server-side resources used by Webeyez Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.20 | 42.40 ▲8.87 |
Dashboard /wp-admin | 3.33 ▲0.27 | 44.06 ▼2.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.26 | 45.75 ▼5.61 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.19 | 94.94 ▼561.39 |
Media Library /wp-admin/upload.php | 3.21 ▲0.20 | 36.62 ▲5.14 |
Webeyez /wp-admin/options-general.php?page=webeyez | 3.19 | 27.69 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Webeyez Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲71 | 15.89 ▲0.26 | 11.02 ▼0.30 | 49.14 ▼1.30 |
Dashboard /wp-admin | 2,978 ▲41 | 5.83 ▼0.15 | 138.51 ▼25.64 | 107.21 ▼11.55 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 67.23 ▼2.83 | 94.11 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,607 ▼65 | 18.68 ▼0.21 | 372.69 ▼12.98 | 109.40 ▼8.46 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▲0.02 | 151.55 ▲8.17 | 117.79 ▲1.24 |
Webeyez /wp-admin/options-general.php?page=webeyez | 1,138 | 2.37 | 60.26 | 91.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=webeyez
- > Notice in wp-content/plugins/webeyez-analytics/controllers/class-base-controller.php+145
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=webeyez
- > Warning in wp-content/plugins/webeyez-analytics/controllers/class-base-controller.php+146
Cannot modify header information - headers already sent by (output started at wp-admin/includes/misc.php:1281)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/webeyez-analytics/index.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/admin/settings-page.php:11
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/class-ajax.php:17
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/class-cart.php:19
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/class-error-pages.php:17
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/helpers/class-helper-checkout.php:19
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/templates/script.php:15
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/class-checkout.php:19
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/class-account.php:17
- > PHP Fatal error
Uncaught Error: Class 'Webeyez\\Controllers\\Base_Controller' not found in wp-content/plugins/webeyez-analytics/controllers/helpers/class-helper-cart.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Contributors not specified
webeyez-analytics/webeyez.php 85% from 13 tests
The primary PHP file in "Webeyez Analytics" version 1.9.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("webeyez-analytics.php" instead of "webeyez.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,406 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 319 | 678 | 1,161 |
CSS | 1 | 46 | 0 | 194 |
JavaScript | 1 | 6 | 1 | 42 |
JSON | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 5 | 5.56% |
▷ Public methods | 87 | 96.67% |
▷ Protected methods | 2 | 2.22% |
▷ Private methods | 1 | 1.11% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/bg_login.png | 11.27KB | 6.58KB | ▼ 41.57% |
admin/img/user_icon.png | 2.24KB | 1.86KB | ▼ 16.78% |
admin/img/logo.png | 9.00KB | 3.51KB | ▼ 61.00% |
admin/img/reg_icon.png | 1.79KB | 1.12KB | ▼ 37.54% |