Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.45MB] [CPU: ▼11.51ms] Passed 4 tests
Server-side resources used by WP Catalogue
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.58 ▲3.23 |
Dashboard /wp-admin | 3.53 ▲0.23 | 50.19 ▲2.63 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 45.31 ▼3.89 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 36.83 ▼47.10 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.73 ▲2.32 |
Order /wp-admin/edit.php?post_type=wpcproduct&page=customtaxorder | 3.42 | 36.76 |
WP Catalogue /wp-admin/edit.php?post_type=wpcproduct | 3.50 | 39.07 |
Categories /wp-admin/edit-tags.php?taxonomy=wpccategories&post_type=wpcproduct | 3.45 | 35.49 |
Settings /wp-admin/edit.php?post_type=wpcproduct&page=catalogue_settings | 3.48 | 35.70 |
Server storage [IO: ▲1.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
thumb_width |
widget_recent-posts |
thumb_height |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
image_width |
image_height |
Browser metrics Passed 4 tests
WP Catalogue: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲225 | 13.65 ▼0.58 | 6.21 ▲4.34 | 41.91 ▼1.57 |
Dashboard /wp-admin | 2,251 ▲63 | 5.09 ▼0.94 | 107.35 ▼11.49 | 72.14 ▲24.75 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.36 ▲0.32 | 34.52 ▼6.33 | 35.66 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 21.32 ▲3.00 | 707.38 ▲72.56 | 38.50 ▼12.12 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.46 ▲0.29 | 102.45 ▼6.17 | 72.09 ▲26.69 |
Order /wp-admin/edit.php?post_type=wpcproduct&page=customtaxorder | 943 | 2.12 | 26.20 | 33.69 |
WP Catalogue /wp-admin/edit.php?post_type=wpcproduct | 1,128 | 2.31 | 34.20 | 29.31 |
Categories /wp-admin/edit-tags.php?taxonomy=wpccategories&post_type=wpcproduct | 1,329 | 2.17 | 29.44 | 30.81 |
Settings /wp-admin/edit.php?post_type=wpcproduct&page=catalogue_settings | 1,343 | 2.79 | 39.77 | 33.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-catalogue/uninstall.php+23
Undefined offset: 0
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpcproduct&page=customtaxorder
- > Warning in wp-content/plugins/wp-catalogue/products/order.php+344
Use of undefined constant ORDERLY_DOMAIN - assumed 'ORDERLY_DOMAIN' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type_object() in wp-content/plugins/wp-catalogue/products/sort-categories.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-catalogue/wpc-catalogue.php:492
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-catalogue/themefiles/archive-wpcproduct.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-catalogue/index.php:13
- > PHP Notice
Undefined index: post_type in wp-content/plugins/wp-catalogue/products/sort-categories.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-catalogue/themefiles/single-wpcproduct.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-catalogue/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-catalogue/themefiles/archive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-catalogue/products/order.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-catalogue/includes/css/dynamic-styles.css.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpcproduct&page=catalogue_settings
- > Network (severe)
wp-content/plugins/wp-catalogue/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: list products, product catalog, products, catalogue, wp catalogue...
wp-catalogue/index.php 85% from 13 tests
The entry point to "WP Catalogue" version 1.7.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-catalogue.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,795 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,037 | 1,122 | 2,714 |
PHP | 14 | 407 | 83 | 1,621 |
CSS | 3 | 3 | 1 | 378 |
JavaScript | 4 | 25 | 12 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/bgs-1.png | 1.56KB | 0.72KB | ▼ 53.80% |
includes/css/images/arrow.png | 2.87KB | 0.23KB | ▼ 92.07% |
includes/css/images/cat-rollover.png | 1.67KB | 0.71KB | ▼ 57.39% |
includes/css/images/featured.png | 1.57KB | 1.53KB | ▼ 2.50% |
images/shopping-basket.png | 3.32KB | 0.52KB | ▼ 84.41% |