84% follow-me-widgets

Code Review | Follow Me Widgets

WordPress plugin Follow Me Widgets scored84%from 54 tests.

About plugin

  • Plugin page: follow-me-widgets
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.5
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 5
  • Update frequency: every 98.2 days
  • Top authors: enqtran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,703 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.77ms] Passed 4 tests

A check of server-side resources used by Follow Me Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.25 ▼3.16
Dashboard /wp-admin3.37 ▲0.0646.78 ▼3.73
Posts /wp-admin/edit.php3.42 ▲0.0647.67 ▲7.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.61 ▼14.93
Media Library /wp-admin/upload.php3.29 ▲0.0632.88 ▲2.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_enqtran_follow_me_widgets
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Follow Me Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.351.66 ▼0.3040.53 ▼3.39
Dashboard /wp-admin2,209 ▲215.88 ▼0.1297.17 ▼17.2239.53 ▼3.90
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0239.57 ▼3.3534.96 ▼0.70
Add New Post /wp-admin/post-new.php1,520 ▲623.32 ▲5.89682.14 ▲58.4458.10 ▲6.68
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0591.93 ▼6.2643.66 ▼0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_enqtran_follow_me_widgets
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/follow-me-widgets/plugin_follow_me_widgets.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt might help

follow-me-widgets/plugin_follow_me_widgets.php 92% from 13 tests

This is the main PHP file of "Follow Me Widgets" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("follow-me-widgets.php" instead of "plugin_follow_me_widgets.php")

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
Good job! No executable or dangerous file extensions detected327 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13431327

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
14 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/behance.png6.78KB3.44KB▼ 49.29%
images/linkedin.png4.63KB2.96KB▼ 35.92%
images/blogger.png5.62KB3.39KB▼ 39.75%
screenshot-1.png58.85KB17.84KB▼ 69.69%
images/skype.png9.28KB4.30KB▼ 53.69%