84% slick-post

Code Review | Slick Post

WordPress plugin Slick Post scored 84% from 54 tests.

About plugin

  • Plugin page: slick-post
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 6
  • Update frequency: every 12.7 days
  • Top authors: anik4e (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 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: ▼7.10ms] Passed 4 tests

This is a short check of server-side resources used by Slick Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.99 ▼12.30
Dashboard /wp-admin3.34 ▲0.0450.57 ▲2.80
Posts /wp-admin/edit.php3.39 ▲0.0449.80 ▲1.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.80 ▼17.44
Media Library /wp-admin/upload.php3.27 ▲0.0435.19 ▼0.06
Slick Post /wp-admin/options-general.php?page=slick_post3.2433.40

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

Browser metrics Passed 4 tests

Checking browser requirements for Slick Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.61 ▼1.045.79 ▲3.7148.91 ▲8.66
Dashboard /wp-admin2,210 ▲224.86 ▼0.95107.35 ▼5.4343.18 ▼0.17
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.1254.51 ▲11.5438.97 ▲0.05
Add New Post /wp-admin/post-new.php1,545 ▲1118.35 ▼4.75643.56 ▼21.9773.41 ▲16.66
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.16100.02 ▲0.1843.76 ▼1.39
Slick Post /wp-admin/options-general.php?page=slick_post9112.0624.7526.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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
Good news, no errors were detected

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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slick-post/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/slick-post/slick-post.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === slick-post === )
Please take inspiration from this readme.txt

slick-post/slick-post.php 92% from 13 tests

The primary PHP file in "Slick Post" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin304 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32323173
CSS154120
JavaScript15011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
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%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin