84% wp-login-notice

Code Review | WP Login Notice

WordPress plugin WP Login Notice scored84%from 54 tests.

About plugin

  • Plugin page: wp-login-notice
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Mar 3, 2018
  • Number of updates: 8
  • Update frequency: every 108.1 days
  • Top authors: beek.yoshida (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by WP Login Notice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.25 ▼2.11
Dashboard /wp-admin3.35 ▲0.0057.36 ▼6.66
Posts /wp-admin/edit.php3.40 ▲0.0454.29 ▲4.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.96 ▼1.45
Media Library /wp-admin/upload.php3.27 ▲0.0438.46 ▲1.11
WP Login Notice /wp-admin/plugins.php?page=wp-login-notice/wp-login-notice.php3.3433.56

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

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

Browser metrics Passed 4 tests

WP Login Notice: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.071.79 ▼0.0645.04 ▼1.99
Dashboard /wp-admin2,213 ▲225.89 ▲0.93111.01 ▼0.4341.87 ▲0.00
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0643.11 ▲4.8335.66 ▼2.55
Add New Post /wp-admin/post-new.php1,517 ▼1117.94 ▼0.26625.52 ▼35.4157.32 ▲5.91
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0299.12 ▼11.9840.90 ▼3.86
WP Login Notice /wp-admin/plugins.php?page=wp-login-notice/wp-login-notice.php8862.0223.3829.71

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-notice/wp-login-notice.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: login, alert, notice

wp-login-notice/wp-login-notice.php Passed 13 tests

The main file in "WP Login Notice" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Someone will be notified by e-mail After logging.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin212 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23621137
PO File1324975

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin