83% post-sliders

Code Review | Post Slider

WordPress plugin Post Slider scored83%from 54 tests.

About plugin

  • Plugin page: post-sliders
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Mar 27, 2021
  • Number of updates: 19
  • Update frequency: every 84.2 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /13,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.34MB] [CPU: ▼5.69ms] Passed 4 tests

A check of server-side resources used by Post Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3538.74 ▲2.71
Dashboard /wp-admin3.66 ▲0.3147.30 ▼14.44
Posts /wp-admin/edit.php3.71 ▲0.3551.21 ▲2.63
Add New Post /wp-admin/post-new.php6.26 ▲0.3786.27 ▼12.60
Media Library /wp-admin/upload.php3.58 ▲0.3537.12 ▲1.67
All Slider /wp-admin/edit.php?post_type=tppostpro3.6341.29
Add Post Slider /wp-admin/post-new.php?post_type=tppostpro3.6348.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Post Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,037 ▲29114.17 ▼0.216.55 ▲4.8647.06 ▲5.13
Dashboard /wp-admin2,274 ▲865.32 ▲0.41112.52 ▲10.8538.87 ▼5.56
Posts /wp-admin/edit.php2,144 ▲552.47 ▲0.4943.72 ▲6.2334.59 ▼1.41
Add New Post /wp-admin/post-new.php1,581 ▲5223.51 ▲0.16638.75 ▼29.3934.09 ▼19.17
Media Library /wp-admin/upload.php1,466 ▲814.51 ▲0.3191.20 ▼9.8942.85 ▼0.98
All Slider /wp-admin/edit.php?post_type=tppostpro1,1392.3834.7929.95
Add Post Slider /wp-admin/post-new.php?post_type=tppostpro3,7213.1461.3939.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tppostpro
    • > Javascript (severe) in unknown
    /wp-content/plugins/post-sliders/assets/js/wp-color-picker-alpha.js?ver=6.3.1 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

post-sliders/tp-post-slider.php 85% from 13 tests

"Post Slider" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 227 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-sliders.php" instead of "tp-post-slider.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
Good job! No executable or dangerous file extensions detected12,473 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS6573453,857
JavaScript68611,2823,527
SVG1002,671
PHP102981442,418

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin