77% logo-slider-ninetyseven-infotech

Code Review | Logo Slider Ninetyseven Infotech

WordPress plugin Logo Slider Ninetyseven Infotech scored77%from 54 tests.

About plugin

  • Plugin page: logo-slider-ninet...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Feb 6, 2021
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: sutharkaran10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.00ms] Passed 4 tests

A check of server-side resources used by Logo Slider Ninetyseven Infotech
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.85 ▼6.12
Dashboard /wp-admin3.34 ▲0.0347.71 ▼1.51
Posts /wp-admin/edit.php3.39 ▲0.0345.64 ▼2.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.37 ▼3.17
Media Library /wp-admin/upload.php3.26 ▲0.0333.05 ▼3.94
Add New Logo /wp-admin/post-new.php?post_type=nsi-logo-slider3.3947.35
All Logos /wp-admin/edit.php?post_type=nsi-logo-slider3.3033.07
Logo Category /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=nsi-logo-slider3.2531.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Logo Slider Ninetyseven Infotech
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.22 ▼1.164.54 ▲2.7343.29 ▼5.74
Dashboard /wp-admin2,241 ▲534.85 ▼0.03111.71 ▲3.9141.06 ▼3.16
Posts /wp-admin/edit.php2,124 ▲351.97 ▼0.0640.60 ▼0.9336.78 ▼0.28
Add New Post /wp-admin/post-new.php1,548 ▲623.41 ▲5.32638.13 ▼18.5151.97 ▼7.89
Media Library /wp-admin/upload.php1,423 ▲354.29 ▲0.0897.77 ▲0.9342.97 ▼0.37
Add New Logo /wp-admin/post-new.php?post_type=nsi-logo-slider2,3167.74185.2875.17
All Logos /wp-admin/edit.php?post_type=nsi-logo-slider1,0962.0134.1843.92
Logo Category /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=nsi-logo-slider1,3002.1525.3726.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/logo-slider-ninetyseven-infotech/includes/nsi-logo-cpt.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant NSI_HACK_MSG - assumed 'NSI_HACK_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-slider-ninetyseven-infotech/includes/nsi-logo-cpt.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-slider-ninetyseven-infotech/includes/nsi-logo-metabox.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

logo-slider-ninetyseven-infotech/logo-slider-ninetyseveninfotech.php 77% from 13 tests

The main PHP file in "Logo Slider Ninetyseven Infotech" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logo-slider-ninetyseven-infotech.php" instead of "logo-slider-ninetyseveninfotech.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected612 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1065125405
CSS291136
JavaScript28271

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/arrow-left.png1.15KB0.17KB▼ 85.11%
assets/css/arrow-right.png1.15KB0.18KB▼ 84.62%