Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.63ms] Passed 4 tests
A check of server-side resources used by C4D Shoppable Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.47 ▼4.38 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.94 ▼16.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.63 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.72 ▼15.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.56 ▲6.29 |
Server storage [IO: ▲8.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for C4D Shoppable Images
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.25 | 4.39 ▲2.58 | 40.25 ▼4.30 |
Dashboard /wp-admin | 2,203 ▲15 | 5.95 ▲1.07 | 97.72 ▼26.09 | 37.44 ▼10.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 39.70 ▲1.38 | 33.41 ▼12.37 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.95 ▼0.38 | 678.08 ▲41.21 | 56.79 ▲2.20 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.26 ▲0.05 | 97.04 ▼6.48 | 43.93 ▼3.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-shoppable-images/includes/language.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-shoppable-images/includes/product-search.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-shoppable-images/includes/post-type.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/c4d-shoppable-images/includes/shortcode.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-shoppable-images/includes/defined.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-shoppable-images/includes/load-script.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #2, #3 in c4d-shoppable-images/assets to your readme.txt
c4d-shoppable-images/c4d-shoppable-images.php 92% from 13 tests
The main file in "C4D Shoppable Images" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,196 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 848 | 66 | 2,139 |
PHP | 7 | 72 | 76 | 344 |
CSS | 4 | 44 | 5 | 276 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 18 | |
▷ Named functions | 18 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin