Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/cartloom/cartloom.php+27
Use of undefined constant CARTLOOM_PLUGIN_VERSION - assumed 'CARTLOOM_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.95MB] [CPU: ▼64.03ms] Passed 4 tests
This is a short check of server-side resources used by Cartloom Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.42 | 5.37 ▼38.08 |
Dashboard /wp-admin | 2.07 ▼1.28 | 6.04 ▼65.91 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.79 ▼44.35 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.21 ▼107.76 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.31 ▼27.72 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 313 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_cartloom_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cartloom Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲122 | 13.45 ▼0.56 | 9.93 ▲7.75 | 34.47 ▼10.84 |
Dashboard /wp-admin | 2,210 ▲33 | 5.60 ▼0.03 | 83.82 ▼11.80 | 43.72 ▲2.61 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.20 ▲0.24 | 37.31 ▲1.26 | 39.62 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.29 ▼0.12 | 679.41 ▼9.45 | 66.11 ▲5.60 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.47 ▲0.27 | 112.10 ▲6.28 | 49.65 ▲4.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/cartloom/cartloom.php+27
Use of undefined constant CARTLOOM_PLUGIN_VERSION - assumed 'CARTLOOM_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_cartloom_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cartloom/public/partials/cartloom-public-display.php
- > /wp-content/plugins/cartloom/admin/partials/cartloom-admin-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cartloom/includes/class-cartloom-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartloom/lib/cmb2/init.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
cartloom/cartloom.php Passed 13 tests
"Cartloom Plugin" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Easily add Buy Buttons, Product Groups and Shopping Cart snippets to Wordpress Pages and Posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin42,185 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,731 | 16,335 | 29,151 |
CSS | 10 | 2,057 | 2,058 | 8,746 |
PHP | 27 | 1,366 | 2,761 | 3,496 |
JavaScript | 5 | 221 | 164 | 778 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 31.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 262 | |
▷ Static methods | 24 | 9.16% |
▷ Public methods | 243 | 92.75% |
▷ Protected methods | 9 | 3.44% |
▷ Private methods | 10 | 3.82% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |