10% ncd-loginlogout

Code Review | NCD Login/Logout

WordPress plugin NCD Login/Logout scored10%from 54 tests.

About plugin

  • Plugin page: ncd-loginlogout
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 16
  • Update frequency: every 15.8 days
  • Top authors: noritaka971 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,739 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/ncd-loginlogout/ncd_login_logout.php+157
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.06ms] Passed 4 tests

This is a short check of server-side resources used by NCD Login/Logout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.72 ▲8.20
Dashboard /wp-admin3.31 ▼0.0444.41 ▼15.55
Posts /wp-admin/edit.php3.36 ▲0.0042.59 ▼4.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.99 ▼15.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.42 ▲3.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for NCD Login/Logout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.10 ▼1.251.99 ▲0.1938.22 ▼5.17
Dashboard /wp-admin2,209 ▲185.90 ▼0.0097.88 ▼9.8041.17 ▼0.97
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0435.64 ▼3.5939.71 ▲3.31
Add New Post /wp-admin/post-new.php1,533 ▲1923.45 ▲6.01688.31 ▼5.3560.36 ▲7.40
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0899.06 ▼8.0442.38 ▼2.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/ncd-loginlogout/ncd_login_logout.php on line 157

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 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
7 plugin tags: ncd, login, logout, member space, member...

ncd-loginlogout/ncd_login_logout.php 77% from 13 tests

"NCD Login/Logout" version 1.0.7'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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Name the main plugin file the same as the plugin slug ("ncd-loginlogout.php" instead of "ncd_login_logout.php")

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
There were no executable files found in this plugin300 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12951260
CSS11140

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 4.76MB with 3.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png154.28KB1.52KB▼ 99.02%
images/icon_36.png1.86KB0.92KB▼ 50.73%
images/px.png2.73KB0.09KB▼ 96.60%
images/icon_16.png0.78KB0.59KB▼ 24.41%
screenshot-1.png1,437.76KB7.28KB▼ 99.49%