80% wp-news-sliders

Code Review | WP News Sliders

WordPress plugin WP News Sliders scored80%from 54 tests.

About plugin

  • Plugin page: wp-news-sliders
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Oct 7, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: codeaffairs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,661 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.83ms] Passed 4 tests

Server-side resources used by WP News Sliders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.83 ▲3.61
Dashboard /wp-admin3.35 ▲0.0145.25 ▼11.12
Posts /wp-admin/edit.php3.40 ▲0.0547.00 ▲2.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.28 ▼14.09
Media Library /wp-admin/upload.php3.28 ▲0.0536.00 ▼0.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 14 new options
New WordPress options
news_slider_max_width
news_slider_sub_news_number
widget_recent-comments
db_upgraded
widget_theysaidso_widget
news_slider_max_height
news_slider_theme
news_slider_sub_category
news_slider_bootstrap_files
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP News Sliders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.64 ▼0.9211.40 ▲9.7947.05 ▲7.45
Dashboard /wp-admin2,218 ▲375.69 ▼0.2391.91 ▼11.2037.63 ▼3.12
Posts /wp-admin/edit.php2,120 ▲201.99 ▼0.0141.08 ▲4.4435.10 ▲0.22
Add New Post /wp-admin/post-new.php1,543 ▲1723.30 ▼0.20650.11 ▼34.6463.44 ▲5.63
Media Library /wp-admin/upload.php1,420 ▲264.24 ▼0.10121.96 ▲21.9154.79 ▲8.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method newsSlider::deleteOptions() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: blue slider, grey slider, newscast slider, responsive slider, green slider...

wp-news-sliders/wp-news-sliders.php Passed 13 tests

This is the main PHP file of "WP News Sliders" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
WordPress newscast slider plugin. Show your main news and sub news in slider. Red, Green, Blue or Grey theme option.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected456 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP73723301
CSS7275134
JavaScript20521

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes266.67%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin