Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/ldap-authentication-2/simple-ldap-authentication.php+96
syntax error, unexpected '&', expecting ')'
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.91ms] Passed 4 tests
A check of server-side resources used by LDAP Authentication 2
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.41 ▼1.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.56 ▼2.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.32 ▲4.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.38 ▼17.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.66 ▲1.92 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for LDAP Authentication 2
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.53 | 1.86 ▼0.06 | 52.06 ▲5.85 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.00 | 92.01 ▼8.79 | 40.45 ▼2.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.02 | 40.68 ▲5.26 | 36.02 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▲0.03 | 628.36 ▼26.11 | 50.66 ▼11.08 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.01 | 109.38 ▲1.35 | 47.81 ▲4.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected '&', expecting ')' in wp-content/plugins/ldap-authentication-2/simple-ldap-authentication.php on line 96
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (/trunc/screenshot1.png.)
ldap-authentication-2/simple-ldap-authentication.php 92% from 13 tests
The main PHP file in "LDAP Authentication 2" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ldap-authentication-2.php" instead of "simple-ldap-authentication.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin940 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 79 | 553 |
PO File | 1 | 40 | 42 | 179 |
JavaScript | 1 | 1 | 2 | 111 |
CSS | 1 | 18 | 1 | 97 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 98.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.png | 188.61KB | 67.30KB | ▼ 64.32% |