72% ns-simple-intro-loader

Code Review | NS Simple Intro Loader

WordPress plugin NS Simple Intro Loader scored72%from 54 tests.

About plugin

  • Plugin page: ns-simple-intro-l...
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Feb 7, 2022
  • Number of updates: 36
  • Update frequency: every 52.3 days
  • Top authors: nsthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.02ms] Passed 4 tests

An overview of server-side resources used by NS Simple Intro Loader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0847.69 ▲7.64
Dashboard /wp-admin3.39 ▲0.0847.27 ▼5.51
Posts /wp-admin/edit.php3.50 ▲0.1450.74 ▼1.40
Add New Post /wp-admin/post-new.php5.99 ▲0.0996.48 ▼5.23
Media Library /wp-admin/upload.php3.31 ▲0.0737.45 ▲4.07
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version3.2532.22
Simple Intro Loader /wp-admin/admin.php?page=ns-simple-intro-loader/ns-admin-options/ns_admin_option_dashboard.php3.2935.45
/wp-admin/admin.php?page=plugineye2573.2742.59

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for NS Simple Intro Loader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲22513.58 ▼1.0211.92 ▲10.0943.83 ▲0.10
Dashboard /wp-admin2,212 ▲355.60 ▼0.0084.84 ▼3.9187.01 ▲50.14
Posts /wp-admin/edit.php2,136 ▲362.02 ▼0.0337.59 ▲0.7634.45 ▲0.49
Add New Post /wp-admin/post-new.php1,569 ▲4318.42 ▲0.77722.80 ▲27.2660.20 ▲5.64
Media Library /wp-admin/upload.php1,432 ▲324.24 ▲0.0299.90 ▲0.5683.71 ▲38.97
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version6931.146.6717.02
Simple Intro Loader /wp-admin/admin.php?page=ns-simple-intro-loader/ns-admin-options/ns_admin_option_dashboard.php1,5029.27253.8454.01
/wp-admin/admin.php?page=plugineye2579242.0225.9825.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ns-simple-intro-loader/assets/js/ns-simple-intro-loader-custom.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ns-simple-intro-loader/ns-admin-options/inc.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-simple-intro-loader/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Settings Simple Loader.), #2 (View simple loader example.)
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

ns-simple-intro-loader/ns-simple-intro-loader.php 92% from 13 tests

The principal PHP file in "NS Simple Intro Loader" v. 2.2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,286 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1265183630
CSS55122539
PO File1353588
JavaScript241229

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods526.32%
▷ Protected methods00.00%
▷ Private methods1473.68%
Functions18
▷ Named functions844.44%
▷ Anonymous functions1055.56%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png33.56KB4.77KB▼ 85.79%
screenshot-1.png29.59KB7.17KB▼ 75.77%
ns-admin-options/img/ns_banner_membership-500.png24.95KB26.27KB0.00%
ns-admin-options/img/backend-sidebar-icon.png1.48KB0.54KB▼ 63.47%
ns-admin-options/img/ns-theme-promo.png29.37KB8.96KB▼ 69.50%