83% pustinjak-slider

Code Review | Pustinjak Slider

WordPress plugin Pustinjak Slider scored83%from 54 tests.

About plugin

  • Plugin page: pustinjak-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Mar 13, 2017
  • Latest release: Mar 13, 2017
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,359 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Pustinjak Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.80 ▲2.49
Dashboard /wp-admin3.37 ▲0.0743.72 ▼4.40
Posts /wp-admin/edit.php3.42 ▲0.0742.85 ▼4.08
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.01 ▼9.66
Media Library /wp-admin/upload.php3.29 ▲0.0733.14 ▲0.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Pustinjak Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.76 ▼0.545.04 ▲3.2942.23 ▲1.31
Dashboard /wp-admin2,211 ▲225.88 ▲0.94100.12 ▼9.6938.50 ▼4.83
Posts /wp-admin/edit.php2,097 ▲82.08 ▲0.0736.79 ▼0.7731.04 ▼4.20
Add New Post /wp-admin/post-new.php1,531 ▼218.31 ▼4.86598.30 ▼41.6959.71 ▲4.29
Media Library /wp-admin/upload.php1,399 ▲84.24 ▲0.0495.42 ▼3.1741.97 ▼2.99

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pustinjak-slider/pustinjak-slider.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Admin Panel view of submitted form data.)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

pustinjak-slider/pustinjak-slider.php Passed 13 tests

The main PHP file in "Pustinjak Slider" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Simple WordPress Plugin Image Slider. Go to Customize -> Pustinjak Slider and activate the slider.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin540 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP37540308
CSS2355186
PO File1101245
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 1.06MB with 0.73MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png1,063.60KB268.11KB▼ 74.79%
screenshot-1.png22.20KB8.44KB▼ 61.99%