10% real-sticky

Code Review | Real Sticky

WordPress plugin Real Sticky scored10%from 54 tests.

About plugin

  • Plugin page: real-sticky
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9
  • WordPress version: 6.3.1
  • First release: Sep 11, 2011
  • Latest release: Mar 24, 2018
  • Number of updates: 48
  • Update frequency: every 49.7 days
  • Top authors: graphicedit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,053 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
    Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.12ms] Passed 4 tests

This is a short check of server-side resources used by Real Sticky
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.93 ▼36.37
Dashboard /wp-admin2.08 ▼1.227.51 ▼46.29
Posts /wp-admin/edit.php2.08 ▼1.285.79 ▼47.00
Add New Post /wp-admin/post-new.php2.08 ▼3.817.79 ▼86.80
Media Library /wp-admin/upload.php2.08 ▼1.155.20 ▼32.91
Real Sticky Options /wp-admin/options-general.php?page=real-sticky/options.php2.085.65

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Real Sticky
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.70 ▲0.352.08 ▲0.3042.17 ▼2.95
Dashboard /wp-admin2,199 ▲225.57 ▼0.0987.74 ▼5.0837.86 ▼4.49
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0135.50 ▼2.6134.93 ▼4.02
Add New Post /wp-admin/post-new.php1,531 ▼423.25 ▲5.11695.75 ▲76.3150.83 ▼19.86
Media Library /wp-admin/upload.php1,407 ▲104.18 ▼0.0797.83 ▼4.6141.52 ▼0.29
Real Sticky Options /wp-admin/options-general.php?page=real-sticky/options.php8351.9922.9627.88

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
    Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=real-sticky/options.php
    • > Deprecated in wp-content/plugins/real-sticky/real-sticky.php+62
    Methods with the same name as their class will not be constructors in a future version of PHP; real_sticky has a deprecated constructor

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 fix the following items
  • 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/real-sticky/real-sticky.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/real-sticky/options.php:3

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Page Title.), #2 (Options.)
The official readme.txt might help

real-sticky/real-sticky.php Passed 13 tests

The entry point to "Real Sticky" version 1.3.1 is a PHP file that has certain tags in its header comment area
41 characters long description:
This plugin adds custom Real Sticky Post.

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 plugin147 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2583077
PO File2152470

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png7.81KB4.69KB▼ 39.95%
screenshot-1.png30.67KB15.36KB▼ 49.91%