83% techlineinfo-social-count

Code Review | Techlineinfo Social Count and Share

WordPress plugin Techlineinfo Social Count and Share scored83%from 54 tests.

About plugin

  • Plugin page: techlineinfo-soci...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.3
  • WordPress version: 6.3.1
  • First release: Dec 26, 2014
  • Latest release: Jul 27, 2015
  • Number of updates: 11
  • Update frequency: every 19.5 days
  • Top authors: techlineinfo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.34ms] Passed 4 tests

Server-side resources used by Techlineinfo Social Count and Share
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.89 ▼4.72
Dashboard /wp-admin3.36 ▲0.0646.40 ▼0.08
Posts /wp-admin/edit.php3.41 ▲0.0550.79 ▼2.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.28 ▼8.64
Media Library /wp-admin/upload.php3.28 ▲0.0536.08 ▼1.93

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
msssh_options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Techlineinfo Social Count and Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.62 ▼0.687.31 ▲5.5940.81 ▼3.04
Dashboard /wp-admin2,223 ▲355.80 ▼0.0895.95 ▼11.6871.26 ▲28.31
Posts /wp-admin/edit.php2,106 ▲172.04 ▲0.0437.59 ▲1.1533.42 ▲1.17
Add New Post /wp-admin/post-new.php1,529 ▼417.56 ▼5.68667.75 ▲0.7951.60 ▼5.28
Media Library /wp-admin/upload.php1,408 ▲234.13 ▼0.0693.32 ▼19.1068.54 ▲19.02

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/techlineinfo-social-count/msssh-calling.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/techlineinfo-social-count/msssh-calling.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

techlineinfo-social-count/msssh.php 85% from 13 tests

Analyzing the main PHP file in "Techlineinfo Social Count and Share" version 1.0.4
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("techlineinfo-social-count.php" instead of "msssh.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,882 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35373701
SVG100520
CSS41216338
PHP42535323

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/default_logo.png5.02KB2.88KB▼ 42.67%
images/techline.png0.41KB0.33KB▼ 18.91%