89% wp-social-followers-count

Code Review | WP Social Follower

WordPress plugin WP Social Follower scored89%from 54 tests.

About plugin

  • Plugin page: wp-social-followe...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Jun 23, 2017
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: rakib3784 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.79ms] Passed 4 tests

This is a short check of server-side resources used by WP Social Follower
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.06 ▼6.16
Dashboard /wp-admin3.41 ▲0.1049.38 ▼0.02
Posts /wp-admin/edit.php3.46 ▲0.1048.84 ▲3.37
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.44 ▼1.57
Media Library /wp-admin/upload.php3.33 ▲0.1035.94 ▲0.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_wp_social_authors
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Social Follower
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.17 ▼1.191.70 ▼0.4040.87 ▼5.92
Dashboard /wp-admin2,206 ▲185.91 ▲0.81105.06 ▲2.2942.25 ▼1.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0639.50 ▲0.3336.01 ▲0.75
Add New Post /wp-admin/post-new.php1,519 ▼1023.17 ▲4.75665.11 ▲9.3856.33 ▼8.25
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.00122.82 ▲24.5342.38 ▼2.22

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 detected upon uninstall: 7 options
    • db_upgraded
    • widget_wp_social_authors
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 30 tag instead of maximum 10
The official readme.txt might help

wp-social-followers-count/wp-social-follower.php 77% from 13 tests

Analyzing the main PHP file in "WP Social Follower" version 1.0.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-social-followers-count.php" instead of "wp-social-follower.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,042 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS30132,384
SVG3001,276
PHP114334382

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin