84% widget-post-slider

Code Review | Widget Post Slider

WordPress plugin Widget Post Slider scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /52,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.41ms] Passed 4 tests

Server-side resources used by Widget Post Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.46 ▲3.73
Dashboard /wp-admin3.34 ▲0.0347.53 ▼5.24
Posts /wp-admin/edit.php3.39 ▲0.0349.53 ▲0.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.97 ▼9.89
Media Library /wp-admin/upload.php3.27 ▲0.0337.32 ▲1.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Widget Post Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.46 ▼0.929.27 ▲7.5243.08 ▼0.29
Dashboard /wp-admin2,195 ▲155.56 ▼0.1290.62 ▲0.3239.18 ▼5.28
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0139.07 ▲1.4534.77 ▼2.05
Add New Post /wp-admin/post-new.php1,526 ▼1123.36 ▲5.09678.73 ▲76.3757.05 ▼16.17
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0699.68 ▲2.8144.48 ▼2.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_sp_widget_post_slider
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/widget-post-slider/inc/functions.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: posts widget, category posts slider, widget, latest posts widget slider, widget slider post...

widget-post-slider/widget-post-slider.php Passed 13 tests

The main file in "Widget Post Slider" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Widget Post Slider to display posts image in a slider from category.

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
Success! There were no dangerous files found in this plugin980 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
CSS4144154
PHP33962139
JavaScript12142

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin