Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ldap-integration/ldap-integration.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; LdapIntegrationPlugin has a deprecated constructor
Server metrics [RAM: ▼0.93MB] [CPU: ▼34.15ms] Passed 4 tests
An overview of server-side resources used by LDAP-Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.87 ▼2.29 |
Dashboard /wp-admin | 3.01 ▼0.30 | 22.34 ▼38.19 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 28.51 ▼13.39 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.13 ▼75.48 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 20.58 ▼9.52 |
LDAP Integration /wp-admin/options-general.php?page=ldap-integration | 3.01 | 23.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for LDAP-Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.35 ▼1.40 | 1.82 ▼0.03 | 45.69 ▼3.41 |
Dashboard /wp-admin | 2,207 ▲22 | 4.89 ▼0.99 | 111.57 ▼3.26 | 42.53 ▼87.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.02 | 40.12 ▲2.49 | 35.57 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,522 ▼14 | 23.06 ▼0.42 | 593.19 ▼4.97 | 52.13 ▼7.04 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▲0.00 | 95.33 ▲0.60 | 41.79 ▲1.39 |
LDAP Integration /wp-admin/options-general.php?page=ldap-integration | 1,135 | 2.06 | 22.75 | 30.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ldap-integration
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ldap-integration/ldap-integration.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (2.) image required
- Donate link: Invalid URI ("")
ldap-integration/ldap-integration.php Passed 13 tests
The main PHP file in "LDAP-Integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Allows WordPress to authenticate users through LDAP
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
Everything looks great! No dangerous files found in this plugin692 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 81 | 484 |
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
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin