Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.24ms] Passed 4 tests
A check of server-side resources used by Latch
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.30 ▼1.64 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.21 ▼4.67 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.28 ▼2.49 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.55 ▼4.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.00 ▲0.97 |
Latch settings /wp-admin/options-general.php?page=latch_wordpress | 3.30 | 32.63 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Latch: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.16 ▼1.48 | 1.69 ▼0.47 | 42.15 ▼4.81 |
Dashboard /wp-admin | 2,213 ▲61 | 4.87 ▼0.83 | 97.63 ▼11.71 | 38.94 ▼7.20 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 1.99 ▼0.02 | 38.76 ▼0.36 | 36.11 ▲3.16 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 18.59 ▼4.78 | 583.82 ▼86.64 | 53.57 ▼7.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.02 | 96.58 ▼10.52 | 41.59 ▼6.11 |
Latch settings /wp-admin/options-general.php?page=latch_wordpress | 805 | 2.03 | 22.82 | 26.16 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Telefonica\\Latch\\LatchAuth' not found in wp-content/plugins/latch/vendor/Telefonica/latch-sdk-php/src/LatchUser.php:32
- > PHP Fatal error
Uncaught Error: Class 'Telefonica\\Latch\\LatchApp' not found in wp-content/plugins/latch/vendor/Telefonica/latch-sdk-php/src/Latch.php:31
- > PHP Fatal error
Uncaught Error: Class 'Telefonica\\Latch\\LatchAuth' not found in wp-content/plugins/latch/vendor/Telefonica/latch-sdk-php/src/LatchApp.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/latch/latch.php:254
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/latch/two_factor.php:26
- > PHP Fatal 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: authentication, plugin, security
latch/latch.php Passed 13 tests
Analyzing the main PHP file in "Latch" version 2.5
27 characters long description:
Latch WordPress integration
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,479 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 317 | 693 | 1,251 |
PO File | 2 | 34 | 34 | 102 |
JSON | 3 | 0 | 0 | 95 |
Markdown | 1 | 12 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 1 | 10.00% |
Methods | 105 | |
▷ Static methods | 40 | 38.10% |
▷ Public methods | 92 | 87.62% |
▷ Protected methods | 5 | 4.76% |
▷ Private methods | 8 | 7.62% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin