Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.40ms] Passed 4 tests
This is a short check of server-side resources used by WPC Smart Messages for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.43 ▲2.75 |
Dashboard /wp-admin | 3.40 ▲0.05 | 47.17 ▼17.48 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.52 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 79.73 ▼14.21 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 38.73 ▲2.89 |
About /wp-admin/admin.php?page=wpclever | 3.29 | 31.19 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.29 | 30.29 |
Server storage [IO: ▲0.32MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WPC Smart Messages for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.46 ▲0.11 | 1.74 ▼0.07 | 43.20 ▼0.45 |
Dashboard /wp-admin | 2,260 ▲85 | 5.59 ▼0.03 | 96.07 ▼17.15 | 83.73 ▲38.90 |
Posts /wp-admin/edit.php | 2,181 ▲84 | 2.06 ▲0.07 | 36.44 ▼1.16 | 31.94 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,799 ▲273 | 26.10 ▲3.03 | 699.78 ▲8.55 | 45.08 ▼21.09 |
Media Library /wp-admin/upload.php | 1,477 ▲74 | 4.14 ▼0.07 | 99.35 ▲0.66 | 72.14 ▲30.68 |
About /wp-admin/admin.php?page=wpclever | 1,405 | 2.14 | 30.31 | 34.56 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,735 | 2.13 | 35.12 | 55.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-smart-messages/wpc-smart-messages.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #1 in wpc-smart-messages/assets to your readme.txt
wpc-smart-messages/wpc-smart-messages.php Passed 13 tests
The primary PHP file in "WPC Smart Messages for WooCommerce" version 4.1.5 is used by WordPress to initiate all plugin functionality
80 characters long description:
Display messages throughout your store through smart conditional logic settings.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,343 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 431 | 110 | 2,491 |
PHP | 23 | 429 | 95 | 2,455 |
CSS | 7 | 419 | 160 | 2,040 |
Sass | 1 | 58 | 0 | 328 |
SVG | 1 | 0 | 0 | 29 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 46.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 5 | 6.85% |
▷ Public methods | 73 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin