Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.84MB] [CPU: ▲20.05ms] Passed 4 tests
This is a short check of server-side resources used by WP Art Store
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 64.37 ▲15.72 |
Dashboard /wp-admin | 4.14 ▲0.84 | 69.02 ▲22.27 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 73.56 ▲24.24 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.87 | 105.80 ▲17.96 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 65.03 ▲29.71 |
Themes/Subjects /wp-admin/edit-tags.php?taxonomy=art-store-subject&post_type=art-store-work | 4.06 | 57.21 |
Add New Work /wp-admin/post-new.php?post_type=art-store-work | 4.64 | 79.32 |
Media /wp-admin/edit-tags.php?taxonomy=art-store-medium&post_type=art-store-work | 4.07 | 65.95 |
Options /wp-admin/edit.php?post_type=art-store-work&page=art_store_options | 4.44 | 59.79 |
All Works /wp-admin/edit.php?post_type=art-store-work | 4.10 | 56.77 |
Art Forms /wp-admin/edit-tags.php?taxonomy=art-store-form&post_type=art-store-work | 4.07 | 59.84 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_art-store-related-products |
widget_recent-comments |
can_compress_scripts |
widget_art-store-product |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Art Store
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲91 | 13.22 ▼1.58 | 2.16 ▼0.06 | 39.17 ▼5.57 |
Dashboard /wp-admin | 2,252 ▲61 | 4.84 ▼0.03 | 108.84 ▲6.53 | 40.97 ▼1.36 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.05 | 40.43 ▼2.09 | 35.09 ▼7.87 |
Add New Post /wp-admin/post-new.php | 1,590 ▲57 | 23.70 ▲0.45 | 698.27 ▲26.14 | 38.09 ▼30.88 |
Media Library /wp-admin/upload.php | 1,431 ▲46 | 4.28 ▲0.12 | 98.28 ▼7.12 | 43.66 ▼1.39 |
Themes/Subjects /wp-admin/edit-tags.php?taxonomy=art-store-subject&post_type=art-store-work | 1,277 | 2.14 | 32.18 | 27.86 |
Add New Work /wp-admin/post-new.php?post_type=art-store-work | 3,228 | 9.65 | 247.95 | 96.07 |
Media /wp-admin/edit-tags.php?taxonomy=art-store-medium&post_type=art-store-work | 1,666 | 2.27 | 28.44 | 33.05 |
Options /wp-admin/edit.php?post_type=art-store-work&page=art_store_options | 1,243 | 3.53 | 45.94 | 25.00 |
All Works /wp-admin/edit.php?post_type=art-store-work | 1,129 | 2.00 | 31.13 | 30.03 |
Art Forms /wp-admin/edit-tags.php?taxonomy=art-store-form&post_type=art-store-work | 1,619 | 2.14 | 27.44 | 31.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_art-store-product
- widget_art-store-related-products
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-art-store/inc/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-art-store/inc/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-art-store/inc/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-art-store/inc/cmb2/tests/cmb-tests-base.php:10
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-art-store/inc/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-art-store/inc/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-art-store/inc/cmb2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-art-store/inc/cmb2/example-functions.php:68
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/wp-art-store/inc/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-art-store/inc/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: store, artstore, art, paypal, work...
wp-art-store/art-store.php 85% from 13 tests
This is the main PHP file of "WP Art Store" version 0.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-art-store.php" instead of "art-store.php")
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
Success! There were no dangerous files found in this plugin78,719 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 96 | 8,902 | 11,866 | 20,424 |
PHP | 29 | 1,709 | 2,899 | 5,659 |
CSS | 3 | 965 | 513 | 2,063 |
Sass | 9 | 157 | 24 | 1,079 |
JavaScript | 9 | 193 | 173 | 846 |
Markdown | 7 | 177 | 0 | 532 |
JSON | 6 | 0 | 0 | 160 |
YAML | 2 | 9 | 0 | 148 |
Bourne Shell | 1 | 18 | 7 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 365 | |
▷ Static methods | 21 | 5.75% |
▷ Public methods | 355 | 97.26% |
▷ Protected methods | 5 | 1.37% |
▷ Private methods | 5 | 1.37% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |