84% posts-slider-shortcode

Code Review | Posts Slider Shortcode

WordPress plugin Posts Slider Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: posts-slider-shor...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jan 11, 2022
  • Number of updates: 12
  • Update frequency: every 139.8 days
  • Top authors: kadiwala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Posts Slider Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.38 ▲0.06
Dashboard /wp-admin3.31 ▲0.0049.16 ▲3.37
Posts /wp-admin/edit.php3.36 ▲0.0046.78 ▼0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.00105.21 ▲2.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.45 ▲2.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Posts Slider Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.60 ▼0.786.06 ▲4.5042.06 ▼10.84
Dashboard /wp-admin2,203 ▲184.86 ▼0.02124.81 ▲0.9165.76 ▲7.97
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0243.50 ▲0.9840.38 ▲4.68
Add New Post /wp-admin/post-new.php1,514 ▼617.43 ▼6.24698.10 ▲48.4452.65 ▼1.66
Media Library /wp-admin/upload.php1,388 ▼04.09 ▼0.09112.05 ▼7.9347.77 ▼2.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/posts-slider-shortcode/posts-slider-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed: The official readme.txt is a good inspiration

posts-slider-shortcode/posts-slider-shortcode.php Passed 13 tests

The main PHP file in "Posts Slider Shortcode" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Wordpress Posts Slider is a WordPress plugin Slider of default posts with responsive design.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected7,073 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS418382,594
JavaScript1207171,288
PHP25616520

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin