73% social-tracker

Code Review | Social Tracker

WordPress plugin Social Tracker scored 73% from 54 tests.

About plugin

  • Plugin page: social-tracker
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 8
  • Update frequency: every 2.6 days
  • Top authors: bhagirath25 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,309 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.59ms] Passed 4 tests

Analyzing server-side resources used by Social Tracker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.96 ▼3.70
Dashboard /wp-admin3.31 ▲0.0144.24 ▼3.53
Posts /wp-admin/edit.php3.36 ▲0.0045.82 ▲2.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.56 ▲6.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▼1.12
Social Tracker /wp-admin/options-general.php?page=social_tracker3.2332.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Social Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.151.82 ▼0.6040.51 ▼12.16
Dashboard /wp-admin2,210 ▲285.90 ▲0.04105.74 ▼19.6042.03 ▼2.57
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0440.63 ▲5.6335.52 ▼0.37
Add New Post /wp-admin/post-new.php1,536 ▲323.38 ▲0.11633.30 ▼34.3252.49 ▼1.30
Media Library /wp-admin/upload.php1,386 ▼24.23 ▼0.0395.99 ▼18.0346.84 ▼3.59
Social Tracker /wp-admin/options-general.php?page=social_tracker2,2457.35134.21100.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/social-tracker/class/our_plugins.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-tracker/social-tracker.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=social_tracker
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/options-general.php?page=social_tracker
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=social_tracker
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/options-general.php?page=social_tracker
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=social_tracker
    • > Network (severe)
    https://click2check.net/click2checklight?url= - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: track, google plus, facebook, social, alexa...

social-tracker/social-tracker.php Passed 13 tests

The main PHP file in "Social Tracker" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Track your website's social and SEO ranking daily data to know your sites growth.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,180 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS531296,214
JavaScript35882791,567
SVG100229
PHP24313170

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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