83% dreampoints-slider-by-kris-iv

Code Review | DreamPoints Slider by KRIS_IV

WordPress plugin DreamPoints Slider by KRIS_IV scored83%from 54 tests.

About plugin

  • Plugin page: dreampoints-slide...
  • Plugin version: v1.0.1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2013
  • Latest release: Dec 15, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: kris_IV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 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 gracefully, with no errors

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

This is a short check of server-side resources used by DreamPoints Slider by KRIS_IV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0827.00 ▼17.38
Dashboard /wp-admin3.31 ▲0.0148.70 ▲2.04
Posts /wp-admin/edit.php3.36 ▲0.0148.27 ▼4.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.15 ▼8.87
Media Library /wp-admin/upload.php3.24 ▲0.0138.16 ▼1.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for DreamPoints Slider by KRIS_IV
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.22 ▼1.381.97 ▲0.1755.78 ▲11.43
Dashboard /wp-admin2,211 ▲235.85 ▲0.81102.03 ▼10.5570.58 ▲30.64
Posts /wp-admin/edit.php2,109 ▲201.99 ▼0.0038.33 ▼2.4333.48 ▼2.75
Add New Post /wp-admin/post-new.php1,682 ▲16822.36 ▲4.80681.62 ▲33.1741.59 ▼12.08
Media Library /wp-admin/upload.php1,402 ▲144.13 ▼0.0894.94 ▼12.4864.76 ▲17.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dreampoints-slider-by-kris-iv/dpslider.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings page), #2 (Free Quotation widget should be located in widget area)
The official readme.txt is a good inspiration

dreampoints-slider-by-kris-iv/dpslider.php 85% from 13 tests

"DreamPoints Slider by KRIS_IV" version v1.0.1...'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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dreampoints-slider-by-kris-iv.php" instead of "dpslider.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "v1.0.1...")

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
Everything looks great! No dangerous files found in this plugin382 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS3300256
PHP12517126

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bg60.png0.13KB0.09KB▼ 25.78%
images/logo-180.png4.55KB3.15KB▼ 30.73%
images/karta.png12.07KB4.78KB▼ 60.39%
images/LOGO_60.png2.70KB2.02KB▼ 25.10%
images/LOGO_16.png0.58KB0.51KB▼ 13.52%