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.08MB] [CPU: ▼8.55ms] Passed 4 tests
This is a short check of server-side resources used by Watcher Social Net
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.10 ▼3.58 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.88 ▼15.70 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.51 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.33 ▼14.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.82 ▲2.63 |
Watcher Social Net /wp-admin/options-general.php?page=watchersocialnet_settings | 3.28 | 32.33 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Watcher Social Net
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.17 ▼1.52 | 4.91 ▲2.93 | 40.90 ▲0.29 |
Dashboard /wp-admin | 2,210 ▲27 | 5.84 ▲0.88 | 108.53 ▼8.58 | 37.77 ▼10.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.03 | 40.35 ▼2.12 | 35.48 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 23.24 ▲0.05 | 655.41 ▼36.94 | 54.19 ▼7.52 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.05 | 108.67 ▲5.91 | 47.56 ▲3.70 |
Watcher Social Net /wp-admin/options-general.php?page=watchersocialnet_settings | 829 | 2.02 | 26.36 | 32.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/watcher-social-net/plugin.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== watcher-social-net ===
)
watcher-social-net/plugin.php 92% from 13 tests
The entry point to "Watcher Social Net" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("watcher-social-net.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,300 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 16 | 14 | 2,204 |
SVG | 1 | 0 | 0 | 655 |
PHP | 3 | 101 | 152 | 441 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected