Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲3.80ms] Passed 4 tests
A check of server-side resources used by Product Like and Hide
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 54.66 ▲11.78 |
Dashboard /wp-admin | 3.47 ▲0.17 | 59.08 ▲6.65 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 54.45 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 89.42 ▼7.89 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 47.25 ▲12.68 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_plah_likes |
wp_plah_hides |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Like and Hide
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.36 ▲0.01 | 1.74 ▼0.21 | 43.98 ▲2.80 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.12 | 87.91 ▼8.87 | 40.22 ▼1.04 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.02 ▲0.03 | 35.66 ▼1.15 | 34.28 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,530 ▼5 | 23.53 ▲5.18 | 684.99 ▲72.77 | 71.37 ▲3.82 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▼0.02 | 110.21 ▲11.35 | 48.22 ▲3.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'PLAH_DB_Management' does not have a method 'delete_hides_table'
- The uninstall procedure failed, leaving 2 tables in the database
- wp_plah_hides
- wp_plah_likes
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: is_hide_enabled in wp-content/plugins/product-like-and-hide/templates/admin/statistics-page.php on line 91
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-like-and-hide/templates/admin/admin-header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-like-and-hide/templates/admin/main-page.php:9
- > PHP Warning
include(PLAH_PLUGIN_PATH/templates/admin/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/product-like-and-hide/templates/admin/main-page.php on line 5
- > PHP Notice
Undefined variable: is_like_enabled in wp-content/plugins/product-like-and-hide/templates/admin/statistics-page.php on line 171
- > PHP Warning
include(): Failed opening 'PLAH_PLUGIN_PATH/templates/admin/admin-header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/product-like-and-hide/templates/admin/statistics-page.php on line 5
- > PHP Warning
Use of undefined constant PLAH_PLUGIN_PATH - assumed 'PLAH_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-like-and-hide/templates/admin/settings-page.php on line 5
- > PHP Warning
Use of undefined constant PLAH_PLUGIN_PATH - assumed 'PLAH_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-like-and-hide/templates/admin/main-page.php on line 5
- > PHP Notice
Trying to get property 'product_id' of non-object in wp-content/plugins/product-like-and-hide/templates/like-page-item.php on line 5
- > PHP Warning
require_once(PLAH_PLUGIN_PATH/templates/admin/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/product-like-and-hide/templates/admin/settings-page.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, like, wishlist, product, hide
product-like-and-hide/product-like-and-hide.php 92% from 13 tests
Analyzing the main PHP file in "Product Like and Hide" version 1.0.0
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,905 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 382 | 424 | 1,393 |
CSS | 2 | 81 | 23 | 391 |
JavaScript | 2 | 32 | 42 | 121 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 16 | 45.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.71% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu-logo.png | 0.61KB | 0.59KB | ▼ 1.93% |
assets/images/hide.png | 3.22KB | 2.07KB | ▼ 35.84% |
assets/images/like.png | 1.66KB | 1.28KB | ▼ 22.83% |