84% seamless-sticky-custom-post-types

Code Review | Seamless Sticky Custom Post Types

WordPress plugin Seamless Sticky Custom Post Types scored84%from 54 tests.

About plugin

  • Plugin page: seamless-sticky-c...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Jan 15, 2015
  • Number of updates: 10
  • Update frequency: every 44.2 days
  • Top authors: jaschaephraim (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /67,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests

A check of server-side resources used by Seamless Sticky Custom Post Types
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.72 ▼6.71
Dashboard /wp-admin3.32 ▼0.0364.24 ▼1.11
Posts /wp-admin/edit.php3.37 ▲0.0147.88 ▲4.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.19 ▼5.24
Media Library /wp-admin/upload.php3.24 ▲0.0133.80 ▼2.44

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Seamless Sticky Custom Post Types
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.57 ▼1.054.51 ▲2.4937.76 ▼5.65
Dashboard /wp-admin2,200 ▲125.85 ▼0.05101.08 ▼16.1042.94 ▲0.35
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0540.98 ▲3.2135.64 ▲2.72
Add New Post /wp-admin/post-new.php1,541 ▲2218.12 ▼5.23686.82 ▲27.2761.49 ▲11.63
Media Library /wp-admin/upload.php1,385 ▼64.27 ▲0.0598.31 ▼1.9342.92 ▼4.27

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/seamless-sticky-custom-post-types/seamless-sticky-custom-post-types.php:27

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 on the user side

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
2 plugin tags: sticky, custom post type

seamless-sticky-custom-post-types/seamless-sticky-custom-post-types.php Passed 13 tests

"Seamless Sticky Custom Post Types" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Extends the native sticky post functionality to custom post types in a way that is identical to default posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected71 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102838
JavaScript210633

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin