Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.28ms] Passed 4 tests
Server-side resources used by WP Login Notice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.25 ▼2.11 |
Dashboard /wp-admin | 3.35 ▲0.00 | 57.36 ▼6.66 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.29 ▲4.11 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.96 ▼1.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.46 ▲1.11 |
WP Login Notice /wp-admin/plugins.php?page=wp-login-notice/wp-login-notice.php | 3.34 | 33.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Login Notice: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.07 | 1.79 ▼0.06 | 45.04 ▼1.99 |
Dashboard /wp-admin | 2,213 ▲22 | 5.89 ▲0.93 | 111.01 ▼0.43 | 41.87 ▲0.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.06 | 43.11 ▲4.83 | 35.66 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.94 ▼0.26 | 625.52 ▼35.41 | 57.32 ▲5.91 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.02 | 99.12 ▼11.98 | 40.90 ▼3.86 |
WP Login Notice /wp-admin/plugins.php?page=wp-login-notice/wp-login-notice.php | 886 | 2.02 | 23.38 | 29.71 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-notice/wp-login-notice.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: login, alert, notice
wp-login-notice/wp-login-notice.php Passed 13 tests
The main file in "WP Login Notice" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Someone will be notified by e-mail After logging.
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
There were no executable files found in this plugin212 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 21 | 137 |
PO File | 1 | 32 | 49 | 75 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin