84% watcher-social-net

Code Review | Watcher Social Net

WordPress plugin Watcher Social Net scored84%from 54 tests.

About plugin

  • Plugin page: watcher-social-net
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Feb 11, 2016
  • Latest release: Dec 31, 2015
  • Number of updates: 2
  • Update frequency: every 21.0 days
  • Top authors: rafafc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.10 ▼3.58
Dashboard /wp-admin3.39 ▲0.0543.88 ▼15.70
Posts /wp-admin/edit.php3.50 ▲0.1547.51 ▼0.28
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.33 ▼14.65
Media Library /wp-admin/upload.php3.31 ▲0.0935.82 ▲2.63
Watcher Social Net /wp-admin/options-general.php?page=watchersocialnet_settings3.2832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.17 ▼1.524.91 ▲2.9340.90 ▲0.29
Dashboard /wp-admin2,210 ▲275.84 ▲0.88108.53 ▼8.5837.77 ▼10.33
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0340.35 ▼2.1235.48 ▼0.36
Add New Post /wp-admin/post-new.php1,550 ▲2123.24 ▲0.05655.41 ▼36.9454.19 ▼7.52
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.05108.67 ▲5.9147.56 ▲3.70
Watcher Social Net /wp-admin/options-general.php?page=watchersocialnet_settings8292.0226.3632.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS216142,204
SVG100655
PHP3101152441

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 code0.17
Average class complexity21.00
▷ Minimum class complexity12.00
▷ Maximum class complexity30.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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