10% stick-post-widget

Code Review | Stick Post Widget

WordPress plugin Stick Post Widget scored10%from 54 tests.

About plugin

  • Plugin page: stick-post-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2013
  • Latest release: Dec 18, 2015
  • Number of updates: 10
  • Update frequency: every 100.8 days
  • Top authors: shambhu patnaik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,847 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/stick-post-widget/stick-post-widget.php+122
    Function create_function() is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.88ms] Passed 4 tests

This is a short check of server-side resources used by Stick Post Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.87 ▼33.74
Dashboard /wp-admin2.10 ▼1.216.50 ▼48.43
Posts /wp-admin/edit.php2.10 ▼1.265.40 ▼42.72
Add New Post /wp-admin/post-new.php2.10 ▼3.796.84 ▼90.64
Media Library /wp-admin/upload.php2.10 ▼1.135.40 ▼29.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_stick_post
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Stick Post Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.171.75 ▲0.0540.54 ▼6.10
Dashboard /wp-admin2,192 ▲155.49 ▼0.1885.62 ▼7.5838.46 ▼5.87
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0139.69 ▲0.7635.90 ▼0.82
Add New Post /wp-admin/post-new.php1,533 ▲723.10 ▲0.09611.90 ▼46.5565.07 ▲4.82
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0196.34 ▼10.4643.15 ▼1.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/stick-post-widget/stick-post-widget.php+122
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_stick_post
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/stick-post-widget/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/stick-post-widget/stick-post-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
8 plugin tags: stick, stick post, stick recent post widget, sticky post, stick widget...

stick-post-widget/stick-post-widget.php Passed 13 tests

Analyzing the main PHP file in "Stick Post Widget" version 1.0
55 characters long description:
Stick Post Widget plugin.Display recent stick post show

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP274686

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png6.19KB3.14KB▼ 49.34%
screenshot-1.png5.36KB2.95KB▼ 45.05%