78% zen-social-sticky

Code Review | Zen Sticky Social

WordPress plugin Zen Sticky Social scored78%from 54 tests.

About plugin

  • Plugin page: zen-social-sticky
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 19, 2013
  • Latest release: Sep 23, 2013
  • Number of updates: 14
  • Update frequency: every 0.3 days
  • Top authors: bogdanding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,880 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.02MB] [CPU: ▼3.04ms] Passed 4 tests

Server-side resources used by Zen Sticky Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.57 ▼3.44
Dashboard /wp-admin3.32 ▲0.0250.18 ▼2.59
Posts /wp-admin/edit.php3.37 ▲0.0246.91 ▼3.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.49 ▼2.81
Media Library /wp-admin/upload.php3.24 ▲0.0136.47 ▲2.07
Zen StickySocial /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php3.1933.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
zen_ss_settings
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Zen Sticky Social
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.17 ▼0.181.90 ▲0.0745.09 ▼0.84
Dashboard /wp-admin2,196 ▲225.65 ▲0.14107.69 ▲5.2646.20 ▼0.99
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0139.06 ▼4.3732.96 ▼7.51
Add New Post /wp-admin/post-new.php1,531 ▼623.18 ▲4.84636.92 ▼24.9650.96 ▼8.57
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.07101.47 ▼0.6442.28 ▼5.41
Zen StickySocial /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php8152.0324.4127.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php
    • > Notice in wp-content/plugins/zen-social-sticky/zen-sticky-social.php+35
    Undefined variable: option
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=zen-social-sticky/zen-sticky-social.php
    • > Notice in wp-content/plugins/zen-social-sticky/zen-sticky-social.php+35
    Trying to access array offset on value of type null

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-social-sticky/zen-sticky-social.php:14

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

zen-social-sticky/zen-sticky-social.php 92% from 13 tests

The primary PHP file in "Zen Sticky Social" version 0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("zen-social-sticky.php" instead of "zen-sticky-social.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16872
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
img/sprite.png2.17KB1.54KB▼ 28.83%