84% sm-sticky-clicky-star

Code Review | SM Sticky Clicky Star

WordPress plugin SM Sticky Clicky Star scored84%from 54 tests.

About plugin

  • Plugin page: sm-sticky-clicky-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2011
  • Latest release: Apr 12, 2019
  • Number of updates: 41
  • Update frequency: every 67.2 days
  • Top authors: sethcarstens (48.78%)sethmatics (48.78%)bigj9901 (7.32%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /23,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by SM Sticky Clicky Star
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.21 ▼3.01
Dashboard /wp-admin3.33 ▼0.0245.01 ▼20.87
Posts /wp-admin/edit.php3.38 ▲0.0346.85 ▲1.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.18 ▼9.61
Media Library /wp-admin/upload.php3.25 ▲0.0236.48 ▲3.05

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

SM Sticky Clicky Star: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.271.70 ▲0.0141.49 ▼2.73
Dashboard /wp-admin2,206 ▲185.88 ▲0.02107.25 ▲2.7639.72 ▼4.52
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0040.93 ▲3.0335.83 ▲0.23
Add New Post /wp-admin/post-new.php1,514 ▼1917.50 ▼5.61680.43 ▼4.4056.95 ▼1.46
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0796.05 ▼4.2643.80 ▼1.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WPAZ_Plugin_Base\\V_2_6\\Abstract_Plugin' not found in wp-content/plugins/sm-sticky-clicky-star/app/class-plugin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: page, admin, plugin, ajax, sticky...

sm-sticky-clicky-star/sm-sticky-clicky-star.php Passed 13 tests

The main PHP file in "SM Sticky Clicky Star" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
Turn sticky (featured) posts on and off with 1 easy click! Control permissions with “User Role Editor”.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected835 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP4107410316
Markdown5660194
YAML240126
JSON600122
JavaScript141040
XML20030
CSS1307

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.67
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods34
▷ Static methods1235.29%
▷ Public methods2779.41%
▷ Protected methods38.82%
▷ Private methods411.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/star.png3.32KB2.21KB▼ 33.28%