Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests
Analyzing server-side resources used by Loginpetze
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.88 ▲3.51 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.16 ▼3.73 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 53.47 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.65 ▼22.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.78 ▲4.14 |
Loginpetze /wp-admin/options-general.php?page=loginpetze-options | 3.28 | 35.89 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
loginpetze_options |
widget_recent-posts |
loginpetze_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Loginpetze
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.33 ▼0.04 | 1.81 ▲0.05 | 44.27 ▼0.89 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▼0.02 | 89.53 ▼8.41 | 39.59 ▲1.35 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 2.02 ▲0.02 | 42.69 ▲6.43 | 33.53 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲9 | 23.09 ▼0.02 | 677.70 ▲1.90 | 60.18 ▲6.56 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.19 ▲0.00 | 96.50 ▼3.69 | 44.18 ▼0.48 |
Loginpetze /wp-admin/options-general.php?page=loginpetze-options | 940 | 2.12 | 22.37 | 38.04 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/loginpetze/loginpetze.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: push, monitor, notification, login, staging...
loginpetze/loginpetze.php Passed 13 tests
The primary PHP file in "Loginpetze" version 1.4 is used by WordPress to initiate all plugin functionality
73 characters long description:
Notifies the admin by email as soon as a user has successfully logged in.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected728 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 406 | 709 | 572 |
PO File | 1 | 42 | 50 | 151 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview 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.21 |
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 | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected