94% follow-me-sidebar

Code Review | Follow Me Sidebar

WordPress plugin Follow Me Sidebar scored 94% from 54 tests.

About plugin

  • Plugin page: follow-me-sidebar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.8.1
  • First release: Jul 19, 2013
  • Latest release: Jul 19, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: WazzaJB (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,699 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Follow Me Sidebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.59 ▲14.14
Dashboard /wp-admin3.07 ▲0.0144.05 ▲7.16
Posts /wp-admin/edit.php3.12 ▲0.0142.79 ▲4.94
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.79 ▼564.90
Media Library /wp-admin/upload.php3.01 ▲0.0032.06 ▼1.83

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Follow Me Sidebar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲12315.93 ▲0.328.22 ▲0.8651.15 ▲1.88
Dashboard /wp-admin2,975 ▲445.95 ▼0.24139.64 ▼16.01116.98 ▲2.30
Posts /wp-admin/edit.php2,741 ▲22.72 ▼0.0062.33 ▲1.3491.47 ▼0.84
Add New Post /wp-admin/post-new.php1,674 ▼20218.86 ▼0.37370.01 ▼17.60112.24 ▲2.01
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.02141.59 ▼6.22116.23 ▼3.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/follow-me-sidebar/follow-me-sidebar.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: admin sidebar, javascript, jquery, admin

follow-me-sidebar/follow-me-sidebar.php Passed 13 tests

The principal PHP file in "Follow Me Sidebar" v. 1.0 is loaded by WordPress automatically on each request
101 characters long description:
Make the WordPress admin sidebar follow you as you scroll down the page, great for long edit screens!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1141960
PHP14216

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin