Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.05ms] Passed 4 tests
A check of server-side resources used by SocialN - Social Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.63 ▲3.18 |
Dashboard /wp-admin | 3.37 ▲0.03 | 44.50 ▼13.65 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.23 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 80.17 ▼22.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.40 ▲4.83 |
SocialN /wp-admin/options-general.php?page=socialn | 3.27 | 35.58 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SocialN - Social Notifications: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.07 | 1.77 ▲0.21 | 41.52 ▲5.87 |
Dashboard /wp-admin | 2,199 ▲18 | 5.56 ▼0.11 | 89.39 ▼9.33 | 39.26 ▼2.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.07 | 39.76 ▼1.56 | 37.14 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,529 ▼3 | 23.12 ▲0.29 | 679.75 ▲30.12 | 57.95 ▼2.31 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.17 ▼0.04 | 102.44 ▲1.39 | 44.00 ▲0.70 |
SocialN /wp-admin/options-general.php?page=socialn | 1,197 | 2.46 | 53.31 | 54.04 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/socialn-social-notifications/admin/partials/socialn-admin-display.php:26
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/socialn-social-notifications/admin/partials/socialn-admin-display.php on line 16
- > PHP Notice
Undefined variable: styles in wp-content/plugins/socialn-social-notifications/admin/partials/socialn-admin-display.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
socialn-social-notifications/socialn.php 77% from 13 tests
Analyzing the main PHP file in "SocialN - Social Notifications" version 1.0.0
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("socialn-social-notifications.php" instead of "socialn.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
There were no executable files found in this plugin10,057 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,096 | 1,056 | 9,369 |
PHP | 12 | 136 | 528 | 348 |
CSS | 2 | 51 | 27 | 340 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 5.29KB | 3.64KB | ▼ 31.09% |