84% wp-stickit

Code Review | WP Stickit

WordPress plugin WP Stickit scored 84% from 54 tests.

About plugin

  • Plugin page: wp-stickit
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Nov 14, 2021
  • Number of updates: 19
  • Update frequency: every 110.5 days
  • Top authors: mdsabuz (52.63%)wpday (26.32%)ximdevs (21.05%)nazsabuz (15.79%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 4,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by WP Stickit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.45 ▼4.82
Dashboard /wp-admin3.33 ▲0.0242.01 ▼3.14
Posts /wp-admin/edit.php3.38 ▲0.0248.73 ▲1.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.30 ▼17.22
Media Library /wp-admin/upload.php3.25 ▲0.0234.89 ▲0.17
WP Stickit /wp-admin/options-general.php?page=wp_stickit3.2233.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Stickit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.81 ▼0.7810.96 ▲9.2040.08 ▼5.15
Dashboard /wp-admin2,210 ▲194.85 ▼0.16107.01 ▲8.3238.56 ▼4.61
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0239.15 ▼2.1134.74 ▼3.95
Add New Post /wp-admin/post-new.php1,545 ▲818.37 ▼4.74621.66 ▲24.8256.67 ▲3.73
Media Library /wp-admin/upload.php1,386 ▼24.22 ▲0.0495.96 ▼6.1341.25 ▼4.71
WP Stickit /wp-admin/options-general.php?page=wp_stickit8592.0333.8827.60

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stickit/includes/wp_stickit_functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stickit/admin/wp_stickit_admin.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: sticky, sticky widget, jqeury stickit, wp stickit, stickit...

wp-stickit/wp-stickit.php Passed 13 tests

The principal PHP file in "WP Stickit" v. 1.3.1 is loaded by WordPress automatically on each request
53 characters long description:
WP Stickit makes header, sidebar, or anything sticky.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin542 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23818459
PHP5207283

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin