74% stick-with-me

Code Review | Stick With Me

WordPress plugin Stick With Me scored74%from 54 tests.

About plugin

  • Plugin page: stick-with-me
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 28, 2016
  • Latest release: Apr 15, 2016
  • Number of updates: 24
  • Update frequency: every 2.0 days
  • Top authors: iamraymund (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,469 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.70ms] Passed 4 tests

Server-side resources used by Stick With Me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.84 ▲2.63
Dashboard /wp-admin3.34 ▲0.0448.94 ▼6.16
Posts /wp-admin/edit.php3.39 ▲0.0351.39 ▼1.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.05 ▼30.07
Media Library /wp-admin/upload.php3.26 ▲0.0340.57 ▲3.48

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
StickWithMe
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Stick With Me: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲15113.53 ▼1.238.12 ▲6.1444.07 ▲0.81
Dashboard /wp-admin2,225 ▲345.85 ▲0.9399.38 ▼6.2037.06 ▼3.69
Posts /wp-admin/edit.php2,105 ▲132.00 ▼0.0133.25 ▼8.5936.29 ▼1.48
Add New Post /wp-admin/post-new.php1,546 ▲2723.08 ▲0.12671.25 ▼2.5254.73 ▼6.35
Media Library /wp-admin/upload.php1,407 ▲194.22 ▲0.01108.58 ▲1.1846.74 ▲1.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • StickWithMe
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stick-with-me/stick-with-me.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: sticky, sticky element, stick with me

stick-with-me/stick-with-me.php Passed 13 tests

The principal PHP file in "Stick With Me" v. 1.0.1 is loaded by WordPress automatically on each request
78 characters long description:
Make elements sticky (modified version of Sticky Element plugin by Heckenberg)

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
Success! There were no dangerous files found in this plugin227 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35029227

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
There are no PNG files in this plugin