10% post-content-slider

Code Review | Post Content Slider

WordPress plugin Post Content Slider scored10%from 54 tests.

About plugin

  • Plugin page: post-content-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2013
  • Latest release: Mar 28, 2013
  • Number of updates: 18
  • Update frequency: every 1.6 days
  • Top authors: alan.pagoto (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,193 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/post-content-slider/includes/pcs_widget_showdata.php+34
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.59ms] Passed 4 tests

Server-side resources used by Post Content Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.38 ▼3.84
Dashboard /wp-admin3.31 ▼0.0443.80 ▼17.55
Posts /wp-admin/edit.php3.36 ▲0.0044.67 ▲5.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.91 ▼17.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.34 ▲4.25

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

How much does this plugin use your filesystem and database?
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-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Content Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼0.871.68 ▼0.0939.36 ▼5.04
Dashboard /wp-admin2,209 ▲245.90 ▲0.04105.83 ▲0.8840.88 ▼1.53
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0039.04 ▼3.4037.82 ▲3.04
Add New Post /wp-admin/post-new.php1,533 ▲223.32 ▲5.17635.03 ▲28.0249.38 ▼0.03
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.1394.75 ▼8.7843.74 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/post-content-slider/includes/pcs_post_template.php:4
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/post-content-slider/includes/pcs_widget_showdata.php on line 34
    • > PHP Notice
      Undefined variable: i in wp-content/plugins/post-content-slider/includes/pcs_post_template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-content-slider/postcontentslider.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widget, sidebar, slideshow, posts, ajax

post-content-slider/postcontentslider.php 92% from 13 tests

The main PHP file in "Post Content Slider" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-content-slider.php" instead of "postcontentslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected309 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP31415190
JavaScript12082
XML10023
CSS12012
INI1002

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.25
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin