83% healthruwords-slider

Code Review | Healthruwords Slider

WordPress plugin Healthruwords Slider scored83%from 54 tests.

About plugin

  • Plugin page: healthruwords-slider
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: Jun 25, 2016
  • Number of updates: 60
  • Update frequency: every 6.6 days
  • Top authors: healthruwords (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,206 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.98ms] Passed 4 tests

An overview of server-side resources used by Healthruwords Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.88 ▼2.28
Dashboard /wp-admin3.32 ▲0.0252.72 ▼1.21
Posts /wp-admin/edit.php3.43 ▲0.0847.19 ▼1.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.61 ▼15.38
Media Library /wp-admin/upload.php3.24 ▲0.0241.93 ▲4.07

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

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

Browser metrics Passed 4 tests

Healthruwords Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.41 ▼1.329.24 ▲7.3441.94 ▼2.84
Dashboard /wp-admin2,195 ▲155.61 ▼0.0597.64 ▲7.5641.49 ▼3.22
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0740.29 ▲3.9131.67 ▼6.11
Add New Post /wp-admin/post-new.php1,527 ▼823.23 ▲5.14646.80 ▲0.0159.33 ▼14.22
Media Library /wp-admin/upload.php1,394 ▼94.19 ▲0.02102.57 ▲3.6942.27 ▼6.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_jr_insta_slider

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/healthruwords-slider/healthruwords_slider_v1.php:12

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === healthruwords-slider === )
  • Tags: You are using too many tags: 18 tag instead of maximum 10
You can take inspiration from this readme.txt

healthruwords-slider/healthruwords_slider_v1.php 92% from 13 tests

Analyzing the main PHP file in "Healthruwords Slider" version 1.3
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("healthruwords-slider.php" instead of "healthruwords_slider_v1.php")

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
Success! There were no dangerous files found in this plugin1,450 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP32481821,135
CSS32828183
JavaScript2141390
XML30040
INI1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity52.67
▷ Minimum class complexity4.00
▷ Maximum class complexity83.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods75
▷ Static methods45.33%
▷ Public methods6688.00%
▷ Protected methods00.00%
▷ Private methods912.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/healthruwords-inspirational-images-healing-quotes-logo-widget.png6.40KB2.42KB▼ 62.18%