84% nslider

Code Review | Nslider

WordPress plugin Nslider scored84%from 54 tests.

About plugin

  • Plugin page: nslider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2015
  • Latest release: Oct 6, 2015
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: Bhanu1413 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 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.02MB] [CPU: ▼7.26ms] Passed 4 tests

Server-side resources used by Nslider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.97 ▲1.33
Dashboard /wp-admin3.33 ▼0.0153.82 ▼9.26
Posts /wp-admin/edit.php3.39 ▲0.0348.39 ▼4.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.65 ▼17.04
Media Library /wp-admin/upload.php3.26 ▲0.0340.07 ▲3.73
NSlider /wp-admin/edit.php?post_type=nslider3.3039.48
Add New /wp-admin/post-new.php?post_type=nslider3.3751.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nslider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.37 ▲0.092.61 ▲0.6446.59 ▼1.55
Dashboard /wp-admin2,206 ▲295.60 ▲0.0395.10 ▲4.7989.11 ▲50.50
Posts /wp-admin/edit.php2,132 ▲291.98 ▼0.0137.69 ▲1.1733.23 ▼3.01
Add New Post /wp-admin/post-new.php1,549 ▲2323.54 ▲0.49698.35 ▼4.8572.62 ▲15.79
Media Library /wp-admin/upload.php1,429 ▲264.20 ▲0.0399.16 ▼6.6878.49 ▲30.38
NSlider /wp-admin/edit.php?post_type=nslider1,1031.9833.7130.96
Add New /wp-admin/post-new.php?post_type=nslider2,2827.59168.91118.54

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nslider/nslider.php

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 97% 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 your attention:
  • Screenshots: Please describe screenshot #1 in nslider/assets to your readme.txt
You can take inspiration from this readme.txt

nslider/nslider.php Passed 13 tests

The principal PHP file in "Nslider" v. 1.0 is loaded by WordPress automatically on each request
98 characters long description:
This is a simple wordpress plugin which can add a slideshow with thumbnails in your wordpress site

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
There were no executable files found in this plugin256 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS12510118
JavaScript311874
PHP1283664

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.98KB0.13KB▼ 87.05%