84% lof-slider-news

Code Review | Moortak Lof Slider News

WordPress plugin Moortak Lof Slider News scored 84% from 54 tests.

About plugin

  • Plugin page: lof-slider-news
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 11, 2016
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: moortak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,325 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Moortak Lof Slider News
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.27 ▲3.37
Dashboard /wp-admin3.32 ▲0.0144.42 ▼4.61
Posts /wp-admin/edit.php3.37 ▲0.0147.26 ▼5.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.12 ▼24.22
Media Library /wp-admin/upload.php3.24 ▲0.0135.74 ▼1.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_mlsn_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Moortak Lof Slider News
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.78 ▼0.475.76 ▲4.1137.18 ▼9.23
Dashboard /wp-admin2,206 ▲215.84 ▲0.96105.63 ▲6.6739.43 ▼2.36
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0538.41 ▼2.8133.60 ▼0.63
Add New Post /wp-admin/post-new.php1,514 ▼017.75 ▲0.30672.36 ▼1.0863.57 ▲3.80
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0192.65 ▼19.0241.96 ▼2.37

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_mlsn_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lof-slider-news/lof-slider-news.php:30

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 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === lof-slider-news === )
Please take inspiration from this readme.txt

lof-slider-news/lof-slider-news.php 92% from 13 tests

The main file in "Moortak Lof Slider News" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin844 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33493407
CSS2167222
PHP11615132
PO File2192683

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.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-bg.png3.00KB0.35KB▼ 88.20%
images/transparent_bg.png0.14KB0.09KB▼ 33.56%
images/btn-slider.png8.66KB3.54KB▼ 59.19%
images/bg_trans.png0.11KB0.09KB▼ 12.84%