Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-e-customers/functions/sections/downloads/wpecus_downloads_core.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; wpecus_downloads has a deprecated constructor
Server metrics [RAM: ▼0.94MB] [CPU: ▼44.48ms] Passed 4 tests
Analyzing server-side resources used by WP e-Customers Beta
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▼0.42 | 12.32 ▼26.86 |
Dashboard /wp-admin | 3.07 ▼0.23 | 15.24 ▼36.56 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 15.72 ▼28.56 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.82 | 14.62 ▼85.95 |
Media Library /wp-admin/upload.php | 3.08 ▼0.16 | 14.95 ▼20.92 |
Flag Item /wp-admin/post-new.php?post_type=wpecustomersflags | 3.08 | 15.99 |
All Downloads /wp-admin/edit.php?post_type=downloads | 3.08 | 15.22 |
All Flags /wp-admin/edit.php?post_type=wpecustomersflags | 3.08 | 15.33 |
Add New /wp-admin/post-new.php?post_type=downloads | 3.08 | 13.60 |
Server storage [IO: ▲3.04MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 202 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpecus_adminset |
can_compress_scripts |
wpecus_tabmenu |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP e-Customers Beta: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.17 ▼1.21 | 1.88 ▲0.07 | 48.05 ▲1.59 |
Dashboard /wp-admin | 2,276 ▲85 | 4.87 ▼0.23 | 99.08 ▼0.29 | 42.37 ▲1.84 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 2.00 ▲0.02 | 37.06 ▼1.72 | 34.74 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,573 ▲45 | 17.60 ▼0.55 | 684.73 ▲50.80 | 61.51 ▲5.89 |
Media Library /wp-admin/upload.php | 1,455 ▲64 | 4.24 ▼0.07 | 97.71 ▼3.67 | 44.21 ▼0.07 |
Flag Item /wp-admin/post-new.php?post_type=wpecustomersflags | 2,826 | 7.82 | 194.27 | 71.29 |
All Downloads /wp-admin/edit.php?post_type=downloads | 1,174 | 1.93 | 30.14 | 30.34 |
All Flags /wp-admin/edit.php?post_type=wpecustomersflags | 1,123 | 2.01 | 30.44 | 31.37 |
Add New /wp-admin/post-new.php?post_type=downloads | 3,213 | 7.84 | 172.00 | 73.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-e-customers/functions/sections/downloads/wpecus_downloads_core.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; wpecus_downloads has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- wpecus_adminset
- wpecus_tabmenu
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=downloads
- > Deprecated in wp-content/plugins/wp-e-customers/functions/sections/downloads/wpecus_downloads_core.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; wpecus_downloads has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=downloads
- > Notice in wp-content/plugins/wp-e-customers/functions/wpecus_main_classes.php+37
Undefined property: WPeCustomers::$WPeCus_core
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 21× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wp-e-customers/views/forum/wpecus_forum_overview.php
- > /wp-content/plugins/wp-e-customers/views/main/wpecus_about.php
- > /wp-content/plugins/wp-e-customers/views/monetize/wpecus_monetize_overview.php
- > /wp-content/plugins/wp-e-customers/views/users/wpecus_users_profile.php
- > /wp-content/plugins/wp-e-customers/index.php
- > /wp-content/plugins/wp-e-customers/views/index.php
- > /wp-content/plugins/wp-e-customers/views/questions/wpecus_questions_overview.php
- > /wp-content/plugins/wp-e-customers/functions/index.php
- > /wp-content/plugins/wp-e-customers/views/finance/wpecus_finance_overview.php
- > /wp-content/plugins/wp-e-customers/wtg-core/wp/css/index.php
- 84× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wpecus_create_adminurl() in wp-content/plugins/wp-e-customers/views/downloads/wpecus_downloads_library.php:26
- > PHP Fatal error
Uncaught Error: Class 'WPeCus_lab_core' not found in wp-content/plugins/wp-e-customers/functions/sections/monetize/wpecus_monetize_core.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPeCus_community_ui' not found in wp-content/plugins/wp-e-customers/functions/sections/downloads/wpecus_downloads_ui.php:10
- > PHP Notice
Trying to get property 'user_login' of non-object in wp-content/plugins/wp-e-customers/views/users/wpecus_users_profile.php on line 44
- > PHP Fatal error
Uncaught Error: Class 'WPeCus_tickets_core' not found in wp-content/plugins/wp-e-customers/functions/sections/users/wpecus_users_core.php:9
- > PHP Fatal error
require_once(): Failed opening required 'WTG_WPECUS_PATHfunctions/sections/clients/wpecus_clients_processing.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-e-customers/processing/wpecus_form_one.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function wpecus_header_page() in wp-content/plugins/wp-e-customers/views/users/wpecus_main_users.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function wpecus_header_page() in wp-content/plugins/wp-e-customers/views/affiliates/wpecus_main_affiliates.php:28
- > PHP Fatal error
Uncaught Error: Class 'WPeCus_downloads_ui' not found in wp-content/plugins/wp-e-customers/functions/sections/faq/wpecus_faq_ui.php:10
- > PHP Notice
Undefined variable: panel_number in wp-content/plugins/wp-e-customers/views/main/wpecus_generalsettings.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-e-customers ===
)
wp-e-customers/wp-e-customers.php Passed 13 tests
This is the main PHP file of "WP e-Customers Beta" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
WP e-Customers plugin is the ultimate online business solution
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,530 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 2,680 | 4,338 | 8,961 |
CSS | 3 | 82 | 52 | 569 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 1.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 1 | 1.64% |
▷ Concrete classes | 60 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 2 | 9.52% |
▷ Private methods | 1 | 4.76% |
Functions | 322 | |
▷ Named functions | 322 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 2.32MB with 2.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wtg-core/images/warning_extra.png | 105.76KB | 10.47KB | ▼ 90.10% |
wtg-core/images/error_large.png | 62.46KB | 5.79KB | ▼ 90.72% |
wtg-core/images/stop_extra.png | 140.76KB | 16.99KB | ▼ 87.93% |
wtg-core/images/restricted_extra.png | 124.49KB | 14.43KB | ▼ 88.41% |
wtg-core/images/step_large.png | 60.62KB | 5.37KB | ▼ 91.14% |