Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼4.42ms] Passed 4 tests
A check of server-side resources used by Photoframes and art for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 48.19 ▲2.78 |
Dashboard /wp-admin | 3.76 ▲0.45 | 59.11 ▲7.23 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 54.55 ▼5.39 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 91.41 ▼15.64 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 38.36 ▲0.59 |
Photoframe and Art /wp-admin/admin.php?page=photoandart-settings | 3.59 | 38.71 |
Server storage [IO: ▲1.18MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: 10 new tables, 8 new options
New tables |
---|
wp_photoart_size_pricing |
wp_photoart_backgrounds |
wp_photoart_paper_type |
wp_photoart_fixture |
wp_photoart_glass |
wp_photoart_paper |
wp_photoart_window_mount |
wp_photoart_frame |
wp_photoart_frame_material |
wp_photoart_substrate |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
_photoart_default_product |
_photoart_query_inserted |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Photoframes and art for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲151 | 14.68 ▲0.51 | 2.08 ▲0.14 | 46.69 ▲5.34 |
Dashboard /wp-admin | 2,343 ▲166 | 6.21 ▲0.57 | 112.04 ▲25.65 | 42.79 ▼4.28 |
Posts /wp-admin/edit.php | 2,272 ▲172 | 3.37 ▲1.34 | 49.10 ▲7.33 | 34.34 ▼6.02 |
Add New Post /wp-admin/post-new.php | 1,537 ▲6 | 22.96 ▼0.11 | 576.54 ▼102.34 | 34.33 ▼16.11 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.09 ▼0.17 | 85.64 ▼18.56 | 44.45 ▲2.22 |
Photoframe and Art /wp-admin/admin.php?page=photoandart-settings | 991 | 3.05 | 38.30 | 24.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 10 tables in the database
- wp_photoart_paper
- wp_photoart_window_mount
- wp_photoart_backgrounds
- wp_photoart_size_pricing
- wp_photoart_frame
- wp_photoart_substrate
- wp_photoart_glass
- wp_photoart_frame_material
- wp_photoart_paper_type
- wp_photoart_fixture
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- _photoart_query_inserted
- widget_theysaidso_widget
- widget_recent-posts
- _photoart_default_product
- can_compress_scripts
- db_upgraded
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
These errors were triggered by the plugin
- 23 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=photoandart-settings
- > Notice in wp-content/plugins/photoframes-and-art-for-woocommerce/includes/class-photoart-for-helper-functions.php+268
Undefined index: tab
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=photoandart-settings
- > Notice in wp-content/plugins/photoframes-and-art-for-woocommerce/includes/class-photoart-for-helper-functions.php+300
Undefined index: module
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/photoframes_and_art_for_woocommerce-admin-display.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/photoframes-and-art-for-woocommerce/public/partials/photoframes_and_art_for_woocommerce-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/glass.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/frames.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/window-mount.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/print-type.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/paper.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/fixture.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/substrate.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/navigation.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photoframes-and-art-for-woocommerce/admin/partials/tabs/general-settings.php:17
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in photoframes-and-art-for-woocommerce/assets to your readme.txt
photoframes-and-art-for-woocommerce/photoframes_and_art_for_woocommerce.php 85% from 13 tests
The entry point to "Photoframes and art for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("photoframes-and-art-for-woocommerce.php" instead of "photoframes_and_art_for_woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 410 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 plugin5,767 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 638 | 849 | 2,679 |
PHP | 27 | 330 | 1,061 | 2,374 |
CSS | 3 | 27 | 11 | 714 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 28.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 2 | 2.63% |
▷ Public methods | 71 | 93.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.58% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin