94% tyme-social-count

Code Review | Tyme Social Count

WordPress plugin Tyme Social Count scored 94% from 54 tests.

About plugin

  • Plugin page: tyme-social-count
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 5.8.1
  • First release: Dec 10, 2014
  • Latest release: Feb 11, 2015
  • Number of updates: 9
  • Update frequency: every 7.0 days
  • Top authors: TyB (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 622 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.69ms] Passed 4 tests

This is a short check of server-side resources used by Tyme Social Count
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0333.53 ▼0.87
Dashboard /wp-admin3.09 ▲0.0342.86 ▼4.87
Posts /wp-admin/edit.php3.14 ▲0.0347.09 ▼0.28
Add New Post /wp-admin/post-new.php5.44 ▲0.0183.55 ▼568.73
Media Library /wp-admin/upload.php3.03 ▲0.0336.41 ▲3.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Tyme Social Count: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.88 ▲0.1715.33 ▲3.5244.71 ▼4.14
Dashboard /wp-admin2,970 ▲365.90 ▼0.02144.12 ▼4.85103.21 ▼7.93
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0064.98 ▲0.8888.86 ▲2.25
Add New Post /wp-admin/post-new.php1,901 ▲29719.05 ▲0.31416.65 ▲26.46109.45 ▲2.44
Media Library /wp-admin/upload.php1,748 ▼594.99 ▼0.04160.75 ▼5.34111.67 ▼24.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tyme-social-count/tyme-social-count.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Tyme Social Count returns a simple number for you to style and customize as you see fit.), #2 (Easily customizable and styled to fit your specific theme and/or design.)
Please take inspiration from this readme.txt

tyme-social-count/tyme-social-count.php Passed 13 tests

Analyzing the main PHP file in "Tyme Social Count" version 1.2
99 characters long description:
Displays the total number of social shares from Facebook, Twitter, Pinterest, Google+, and LinkedIn

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
No dangerous file extensions were detected145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37768145

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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