84% who-stick-it

Code Review | AlT Stick It

WordPress plugin AlT Stick It scored84%from 54 tests.

About plugin

  • Plugin page: who-stick-it
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Jan 11, 2017
  • Number of updates: 40
  • Update frequency: every 21.6 days
  • Top authors: AlTi5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by AlT Stick It
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.19 ▼7.16
Dashboard /wp-admin3.31 ▲0.0150.41 ▼2.40
Posts /wp-admin/edit.php3.36 ▲0.0150.21 ▼2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.75 ▼5.92
Media Library /wp-admin/upload.php3.23 ▲0.0135.47 ▼1.88
AlT Stick it /wp-admin/options-general.php?page=alt-stick-it3.2632.57

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

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

Browser metrics Passed 4 tests

AlT Stick It: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8814.48 ▲0.412.61 ▲0.8440.83 ▼0.85
Dashboard /wp-admin2,225 ▲224.86 ▼1.00107.99 ▼0.2540.30 ▼4.82
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0735.12 ▼2.3033.96 ▲0.14
Add New Post /wp-admin/post-new.php1,557 ▲2623.14 ▼0.07637.64 ▲17.9751.25 ▼3.96
Media Library /wp-admin/upload.php1,398 ▼24.32 ▲0.0997.88 ▼8.3444.25 ▲0.59
AlT Stick it /wp-admin/options-general.php?page=alt-stick-it8912.0122.8529.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× 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/who-stick-it/includes/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/who-stick-it/template/tblbords.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/who-stick-it/who-stick-it.php:17

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 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
4 plugin tags: scroll, menu, stiky, stiky menu

who-stick-it/who-stick-it.php Passed 13 tests

The main file in "AlT Stick It" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Make a sticky menu effect of any part on your website !

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin354 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3269208
JavaScript11112106
PO File1101240

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin