83% reset-the-net-splash-screen

Code Review | Reset the Net splash screen

WordPress plugin Reset the Net splash screen scored83%from 54 tests.

About plugin

  • Plugin page: reset-the-net-spl...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 3, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /917 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.01MB] [CPU: ▼2.35ms] Passed 4 tests

This is a short check of server-side resources used by Reset the Net splash screen
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.14 ▼3.19
Dashboard /wp-admin3.32 ▲0.0250.77 ▼4.58
Posts /wp-admin/edit.php3.37 ▲0.0148.56 ▼1.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.47 ▲2.49
Media Library /wp-admin/upload.php3.24 ▲0.0137.12 ▲0.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
rtnss-db_version
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Reset the Net splash screen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.72 ▲0.102.83 ▲0.9838.56 ▼11.68
Dashboard /wp-admin2,198 ▲215.62 ▼0.0384.62 ▼17.0037.92 ▼8.93
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0636.07 ▼0.7337.42 ▲0.20
Add New Post /wp-admin/post-new.php1,545 ▼023.62 ▲0.33656.11 ▼59.5351.39 ▼13.85
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.01100.84 ▲2.3046.80 ▲4.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • rtnss-db_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/reset-the-net-splash-screen/reset-the-net-splash-screen.php:87

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
There were no plugin tags found

reset-the-net-splash-screen/reset-the-net-splash-screen.php 77% from 13 tests

The main PHP file in "Reset the Net splash screen" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Description: The description should be shorter than 140 characters (currently 290 characters long)
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1366956

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected