Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼14.67ms] Passed 4 tests
A check of server-side resources used by Social Notifications for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.59 ▼0.82 |
Dashboard /wp-admin | 3.20 ▼0.10 | 31.95 ▼17.52 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 36.97 ▼12.52 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 75.15 ▼22.90 |
Media Library /wp-admin/upload.php | 3.20 ▼0.02 | 29.57 ▼5.72 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Notifications for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.43 ▼0.00 | 1.72 ▼0.03 | 44.69 ▼5.91 |
Dashboard /wp-admin | 2,209 ▲21 | 5.79 ▼0.10 | 98.13 ▼10.15 | 41.71 ▼2.39 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.06 | 38.95 ▼1.16 | 34.55 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.49 ▲0.15 | 653.43 ▼35.85 | 53.47 ▲6.49 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.01 | 96.32 ▼10.46 | 42.92 ▼2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
social-notifications-for-woocommerce/social-notifications-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Social Notifications for WooCommerce" version 1.1.2
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin41,475 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,135 | 9,126 | 41,475 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,379)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 676.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,379.00 |
Average method complexity | 11.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.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 | 530 | |
▷ Static methods | 113 | 21.32% |
▷ Public methods | 402 | 75.85% |
▷ Protected methods | 127 | 23.96% |
▷ Private methods | 1 | 0.19% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 68 | |
▷ Global constants | 67 | 98.53% |
▷ Class constants | 1 | 1.47% |
▷ 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
PNG images were not found in this plugin