Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.47MB] [CPU: ▼3.75ms] Passed 4 tests
A check of server-side resources used by Product Catalog - Catalog for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 39.93 ▼1.53 |
Dashboard /wp-admin | 3.76 ▲0.46 | 55.24 ▲7.18 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 48.99 ▼7.00 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 93.96 ▼4.99 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 34.54 ▼1.46 |
Comments Manager /wp-admin/admin.php?page=origincode_reviews_page | 3.70 | 35.84 |
Manage Catalogs /wp-admin/admin.php?page=catalogs_origin_code_catalog | 4.06 | 39.84 |
Image View Options /wp-admin/admin.php?page=Options_catalog_lightbox_styles | 3.83 | 36.47 |
Grid Styles /wp-admin/admin.php?page=Options_product_Catalog_styles | 4.41 | 37.81 |
Single Product Styles /wp-admin/admin.php?page=origincode_products_page | 3.73 | 32.96 |
Submissions Manager /wp-admin/admin.php?page=origin_code_catalog_submitions_page | 3.81 | 38.40 |
Settings /wp-admin/admin.php?page=origin_code_catalog_general_options_page | 3.73 | 35.38 |
Ratings Manager /wp-admin/admin.php?page=origincode_ratings_page | 3.69 | 34.73 |
Server storage [IO: ▲2.81MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 181 new files
Database: 8 new tables, 7 new options
New tables |
---|
wp_origincode_asc_desc |
wp_origincode_reviews |
wp_origincode_rating |
wp_origincode_products |
wp_origincode_general_options |
wp_origincode_catalog_album_contact |
wp_origincode_catalog_albums |
wp_origincode_catalogs |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_origincode_catalog_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Product Catalog - Catalog for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲224 | 13.61 ▼0.77 | 7.97 ▲6.03 | 39.08 ▼3.45 |
Dashboard /wp-admin | 2,249 ▲64 | 5.01 ▼0.85 | 111.03 ▼2.88 | 66.50 ▲20.48 |
Posts /wp-admin/edit.php | 2,158 ▲66 | 2.26 ▲0.27 | 40.94 ▲2.96 | 36.74 ▲3.72 |
Add New Post /wp-admin/post-new.php | 1,564 ▲22 | 23.09 ▲4.88 | 668.88 ▲56.86 | 56.57 ▲5.91 |
Media Library /wp-admin/upload.php | 1,456 ▲68 | 4.44 ▲0.26 | 99.71 ▼3.15 | 64.02 ▲18.93 |
Comments Manager /wp-admin/admin.php?page=origincode_reviews_page | 1,681 | 1.93 | 31.26 | 33.31 |
Manage Catalogs /wp-admin/admin.php?page=catalogs_origin_code_catalog | 1,163 | 3.25 | 42.23 | 69.60 |
Image View Options /wp-admin/admin.php?page=Options_catalog_lightbox_styles | 2,218 | 3.85 | 58.62 | 92.86 |
Grid Styles /wp-admin/admin.php?page=Options_product_Catalog_styles | 6,119 | 3.93 | 81.88 | 126.93 |
Single Product Styles /wp-admin/admin.php?page=origincode_products_page | 1,670 | 2.19 | 37.57 | 44.98 |
Submissions Manager /wp-admin/admin.php?page=origin_code_catalog_submitions_page | 1,219 | 3.34 | 42.66 | 75.88 |
Settings /wp-admin/admin.php?page=origin_code_catalog_general_options_page | 2,253 | 8.33 | 165.35 | 137.35 |
Ratings Manager /wp-admin/admin.php?page=origincode_ratings_page | 1,459 | 1.95 | 28.90 | 31.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 8 tables
- wp_origincode_products
- wp_origincode_catalogs
- wp_origincode_general_options
- wp_origincode_reviews
- wp_origincode_catalog_album_contact
- wp_origincode_asc_desc
- wp_origincode_rating
- wp_origincode_catalog_albums
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_origincode_catalog_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=origin_code_catalog_general_options_page
- > User deprecated in wp-includes/functions.php+5828
Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.
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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/displayproduct/views/front_view_height_all.php
- > /wp-content/plugins/displayproduct/views/pagination.php
- > /wp-content/plugins/displayproduct/views/front_view_width_all.php
- 650× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/displayproduct/views/front_view_height_all.php on line 293
- > PHP Notice
Undefined variable: sorting_block_width in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 320
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 520
- > PHP Notice
Undefined variable: catalogID in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 272
- > PHP Notice
Undefined variable: catalogID in wp-content/plugins/displayproduct/views/front_view_height_all.php on line 138
- > PHP Notice
Undefined variable: catalogID in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 518
- > PHP Notice
Undefined variable: catalogID in wp-content/plugins/displayproduct/views/front_view_height_all.php on line 150
- > PHP Notice
Undefined variable: productArray in wp-content/plugins/displayproduct/views/front_single_product.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 175
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/displayproduct/views/front_view_width_all.php on line 432
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=origincode_reviews_page
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).masonry is not a function" "TypeError: jQuery(...).masonry is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/displayproduct/assets/js/admin.js?ver=6.3.1:96:46)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=origincode_reviews_page
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).masonry is not a function
- > GET request to /wp-admin/admin.php?page=origin_code_catalog_general_options_page
- > Network (severe)
wp-content/plugins/displayproduct/images/small-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: products catalog, catalog, product catalogue, goods catalog, product catalog
displayproduct/displayproduct.php 92% from 13 tests
The principal PHP file in "Product Catalog - Catalog for WordPress" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected28,660 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 2,197 | 739 | 16,429 |
CSS | 16 | 808 | 791 | 5,822 |
JavaScript | 13 | 680 | 256 | 3,831 |
SVG | 1 | 1 | 0 | 2,569 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
71 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/elements/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
assets/images/zoom.light.png | 1.55KB | 1.75KB | 0.00% |
assets/images/small-icon.png | 1.90KB | 0.77KB | ▼ 59.17% |
assets/images/share.buttons.2.png | 1.44KB | 1.60KB | 0.00% |
assets/images/5/controls.png | 1.99KB | 2.04KB | 0.00% |