Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.87ms] Passed 4 tests
Server-side resources used by Wine Club Connection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.84 ▼2.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.99 ▼1.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.23 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.49 ▼14.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.91 ▼1.82 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Wine Club Connection
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.20 ▼1.55 | 2.02 ▲0.36 | 43.20 ▲2.09 |
Dashboard /wp-admin | 2,209 ▲24 | 4.87 ▼0.15 | 96.33 ▼3.39 | 36.01 ▼6.29 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 1.99 ▼0.04 | 39.07 ▲2.32 | 34.72 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.06 ▼0.18 | 650.80 ▲33.09 | 52.15 ▲3.49 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.07 | 98.91 ▼0.18 | 42.07 ▼1.86 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wine-club/public/partials/wine-club-public-display.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wine-club/public/partials/wineClubMembershipInMyAccount.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wine-club/admin/partials/membership/addMembershipLevel.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wine-club/public/class-wine-club-public-frontend.php:25
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wine-club/admin/partials/membership/membershipLevels.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wine-club/public/partials/wineClubWelcomeEmail.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wine-club/public/class-wine-club-public.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_tabs() in wp-content/plugins/wine-club/admin/partials/shipping/shippingSettings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_tabs() in wp-content/plugins/wine-club/admin/partials/wine-club-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_tabs() in wp-content/plugins/wine-club/admin/partials/bachOrders/initSteps.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wine-club/admin/class-wine-club-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add an image for screenshot #5 (/assets/banner-image.png)
wine-club/wine-club-connection.php 77% from 13 tests
The primary PHP file in "Wine Club Connection" version 1.1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 193 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wine-club.php" instead of "wine-club-connection.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected11,298 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 3,124 | 1,946 | 9,218 |
PHP | 28 | 499 | 784 | 1,903 |
CSS | 2 | 10 | 15 | 172 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 8 | 9.52% |
▷ Public methods | 69 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 17.86% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 1.00MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wineclubconnection.png | 76.82KB | 34.55KB | ▼ 55.03% |
assets/screenshot-3.png | 85.49KB | 36.71KB | ▼ 57.05% |
assets/screenshot-1.png | 50.70KB | 22.03KB | ▼ 56.56% |
assets/banner-772x250.png | 326.62KB | 105.65KB | ▼ 67.65% |
admin/images/filled-cancel.png | 33.37KB | 18.62KB | ▼ 44.20% |