Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼2.36ms] Passed 4 tests
A check of server-side resources used by Altima Lookbook Free for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 38.94 ▼1.73 |
Dashboard /wp-admin | 3.68 ▲0.38 | 48.14 ▼1.59 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 54.35 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 87.21 ▼10.22 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 38.06 ▲4.11 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 new files
Database: 2 new tables, 17 new options
New tables |
---|
wp_lookbook_sliders_free |
wp_lookbook_slides_free |
New WordPress options |
---|
can_compress_scripts |
wplb_free_show_pinit_slide |
wplb_free_thumb_width |
wplb_free_hspt_icon |
wplb_free_show_addcart_in_popup |
wplb_free_thumb_height |
widget_recent-posts |
widget_theysaidso_widget |
wplb_free_allow_ext |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Altima Lookbook Free for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 14.07 ▼0.31 | 3.73 ▲1.58 | 40.21 ▼8.27 |
Dashboard /wp-admin | 2,271 ▲83 | 5.39 ▲0.48 | 114.69 ▲11.97 | 44.58 ▲1.46 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.57 ▲0.54 | 40.51 ▲5.18 | 34.50 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 22.88 ▼0.29 | 657.03 ▲36.80 | 33.74 ▼14.60 |
Media Library /wp-admin/upload.php | 1,453 ▲74 | 4.58 ▲0.35 | 100.27 ▲0.24 | 41.15 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/altima-lookbook-free-for-woocommerce/uninstall.php+16
Constant ALTIMA_LOOKBOOK_PLUGIN_DIR already defined
- This plugin does not fully uninstall, leaving 17 options in the database
- wplb_free_show_desc_in_popup
- widget_recent-posts
- wplb_free_hspt_icon
- wplb_free_thumb_height
- wplb_free_allow_ext
- db_upgraded
- can_compress_scripts
- wplb_free_max_file_size
- wplb_free_show_pinit_slide
- wplb_free_thumb_width
- ...
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
The smoke test was a success, however most plugin functionality was not tested
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/altima-lookbook-free-for-woocommerce/lookbook.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/altima-lookbook-free-for-woocommerce/lookbook.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/altima-lookbook-free-for-woocommerce/includes/alfw_slider.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/altima-lookbook-free-for-woocommerce/includes/alfw_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/altima-lookbook-free-for-woocommerce/admin/admin.php:1455
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/altima-lookbook-free-for-woocommerce/lookbook.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: lookbook, woocommerce, slider, hotspot
altima-lookbook-free-for-woocommerce/lookbook.php 85% from 13 tests
The entry point to "Altima Lookbook Free for WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("altima-lookbook-free-for-woocommerce.php" instead of "lookbook.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,677 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 420 | 349 | 2,380 |
JavaScript | 20 | 187 | 152 | 1,346 |
CSS | 4 | 82 | 11 | 951 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 40.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
29 PNG files occupy 1.45MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
admin/images/ok_btn_icon.png | 1.58KB | 0.86KB | ▼ 45.74% |
admin/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
admin/images/cancel_btn_icon.png | 1.51KB | 0.68KB | ▼ 54.99% |
admin/css/images/ui-icons_217bc0_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |