62% watchcountcom-wordpress-plugin

Code Review | WatchCount.com WordPress Plugin

WordPress plugin WatchCount.com WordPress Plugin scored62%from 54 tests.

About plugin

  • Plugin page: watchcountcom-wor...
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2009
  • Latest release: May 8, 2016
  • Number of updates: 56
  • Update frequency: every 47.9 days
  • Top authors: WatchCount.com (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /13,069 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.47MB] [CPU: ▼58.84ms] Passed 4 tests

Analyzing server-side resources used by WatchCount.com WordPress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.52 ▼0.948.50 ▼37.49
Dashboard /wp-admin2.54 ▼0.768.15 ▼46.75
Posts /wp-admin/edit.php2.54 ▼0.829.04 ▼43.22
Add New Post /wp-admin/post-new.php2.54 ▼3.359.09 ▼107.91
Media Library /wp-admin/upload.php2.54 ▼0.6910.03 ▼24.08
eBay Items /wp-admin/options-general.php?page=wccwppi-settings2.548.78

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
wccwppi_option_params
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WatchCount.com WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.441.73 ▲0.1542.83 ▲1.46
Dashboard /wp-admin2,202 ▲255.82 ▲0.1582.68 ▼8.0038.66 ▼4.94
Posts /wp-admin/edit.php2,107 ▲42.00 ▼0.0437.32 ▼5.0738.18 ▼1.42
Add New Post /wp-admin/post-new.php1,534 ▲723.07 ▼0.34621.20 ▼51.7749.42 ▼6.71
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.0598.03 ▼15.6145.87 ▼2.08
eBay Items /wp-admin/options-general.php?page=wccwppi-settings1,9242.0223.7547.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wccwppi-settings
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
    • > GET request to /wp-admin/options-general.php?page=wccwppi-settings
    • > User deprecated in wp-includes/functions.php+5453
    Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/watchcountcom-wordpress-plugin/wcc-wp-plugin.php:68

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wccwppi-settings
    • > Network (severe)
    http://www.watchcount.net/images/WCClogo2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wccwppi-settings
    • > Network (severe)
    http://www.watchcount.net/images/fade-blue.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

watchcountcom-wordpress-plugin/wcc-wp-plugin.php 85% from 13 tests

Analyzing the main PHP file in "WatchCount.com WordPress Plugin" version 1.1.7
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("watchcountcom-wordpress-plugin.php" instead of "wcc-wp-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 1329 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,048 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12433001,047
JavaScript1421

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin