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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 46.72 ▲8.20 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.41 ▼15.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.59 ▼4.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.99 ▼15.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.10 ▼1.25 | 1.99 ▲0.19 | 38.22 ▼5.17 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▼0.00 | 97.88 ▼9.80 | 41.17 ▼0.97 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▼0.04 | 35.64 ▼3.59 | 39.71 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.45 ▲6.01 | 688.31 ▼5.35 | 60.36 ▲7.40 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.24 ▲0.08 | 99.06 ▼8.04 | 42.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
- > PHP Parse error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 51 | 260 |
CSS | 1 | 1 | 1 | 40 |
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 code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 154.28KB | 1.52KB | ▼ 99.02% |
images/icon_36.png | 1.86KB | 0.92KB | ▼ 50.73% |
images/px.png | 2.73KB | 0.09KB | ▼ 96.60% |
images/icon_16.png | 0.78KB | 0.59KB | ▼ 24.41% |
screenshot-1.png | 1,437.76KB | 7.28KB | ▼ 99.49% |