84% n360-splash-screen

Code Review | N360 | Splash Screen

WordPress plugin N360 | Splash Screen scored84%from 54 tests.

About plugin

  • Plugin page: n360-splash-screen
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2020
  • Latest release: Dec 31, 2022
  • Number of updates: 25
  • Update frequency: every 30.0 days
  • Top authors: bistromatic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,902 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.00ms] Passed 4 tests

A check of server-side resources used by N360 | Splash Screen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.03 ▲0.35
Dashboard /wp-admin3.37 ▲0.0751.78 ▲3.12
Posts /wp-admin/edit.php3.48 ▲0.1355.02 ▲3.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.55 ▼17.13
Media Library /wp-admin/upload.php3.27 ▲0.0436.01 ▲1.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
n360_config
n360_version_cookie
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for N360 | Splash Screen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲24314.85 ▲0.251.74 ▲0.0538.28 ▼5.25
Dashboard /wp-admin2,384 ▲1936.59 ▲1.72122.97 ▲20.4738.25 ▼7.02
Posts /wp-admin/edit.php2,290 ▲1983.57 ▲1.5354.99 ▲13.6734.24 ▼4.86
Add New Post /wp-admin/post-new.php1,705 ▲16922.41 ▼1.01573.10 ▼15.3827.30 ▼29.74
Media Library /wp-admin/upload.php1,423 ▲354.23 ▲0.0382.15 ▼12.7341.22 ▼0.38

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/n360-splash-screen/includes/activation.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/n360-splash-screen/templates/default-template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/n360-splash-screen/includes/admin.php:15
    • > PHP Warning
      Use of undefined constant N360_SPLASH_PAGE_ROOT_URL - assumed 'N360_SPLASH_PAGE_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/n360-splash-screen/includes/activation.php on line 8
    • > PHP Warning
      Use of undefined constant N360_SPLASH_PAGE_ROOT_URL - assumed 'N360_SPLASH_PAGE_ROOT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/n360-splash-screen/includes/activation.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: background image, splash screen, fade-out, responsive design, fade-in...

n360-splash-screen/n360-splash-screen.php 92% from 13 tests

"N360 | Splash Screen" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin456 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP67334417
CSS13220
JavaScript19019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/envelope.png19.24KB5.86KB▼ 69.56%
assets/images/sample-logo.png12.18KB6.56KB▼ 46.13%