83% sortable-sticky-posts

Code Review | Sortable Sticky Posts

WordPress plugin Sortable Sticky Posts scored83%from 54 tests.

About plugin

  • Plugin page: sortable-sticky-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1+
  • WordPress version: 6.3.1
  • First release: May 1, 2013
  • Latest release: May 1, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: technosailor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

An overview of server-side resources used by Sortable Sticky Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0251.06 ▲8.08
Dashboard /wp-admin20.24 ▲16.893,338,229.99 ▲3,338,175.90
Posts /wp-admin/edit.php3.49 ▲0.0850.08 ▼18.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0289.58 ▼0.93
Media Library /wp-admin/upload.php3.29 ▲0.0237.65 ▼1.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Sortable Sticky Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.35 ▼0.051.74 ▲0.1544.28 ▲2.05
Dashboard /wp-admin2,206 ▲365.69 ▲0.1795.25 ▼0.3946.52 ▼0.42
Posts /wp-admin/edit.php2,109 ▲122.21 ▲0.2237.87 ▼0.9133.79 ▼3.05
Add New Post /wp-admin/post-new.php1,534 ▲823.05 ▼0.02649.53 ▼11.2269.21 ▲14.87
Media Library /wp-admin/upload.php1,408 ▲84.31 ▲0.14108.71 ▲5.7646.45 ▲2.16

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sortable-sticky-posts/wp-sortable-stickies.php:19

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

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tested up to: The plugin version is formatted incorrectly
  • Screenshots: Please add an image for screenshot #1 (Simply drag the posts into the order you want them.)
  • Plugin Name: You should set the name of your plugin on the first line ( === sortable-sticky-posts === )
The official readme.txt is a good inspiration

sortable-sticky-posts/wp-sortable-stickies.php 85% from 13 tests

This is the main PHP file of "Sortable Sticky Posts" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sortable-sticky-posts.php" instead of "wp-sortable-stickies.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected142 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11512119
Markdown119023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png105.47KB36.46KB▼ 65.43%