Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.91ms] Passed 4 tests
An overview of server-side resources used by Was it you? Account login notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.72 ▼0.62 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.79 ▼1.34 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.57 ▲2.36 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.85 ▼7.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.01 ▲2.15 |
Was it you? /wp-admin/options-general.php?page=was-it-you | 3.24 | 31.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Was it you? Account login notifications
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.49 | 1.57 ▼0.12 | 45.97 ▲1.80 |
Dashboard /wp-admin | 2,213 ▲25 | 4.80 ▼0.27 | 108.29 ▲8.41 | 41.64 ▼1.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.18 ▲0.15 | 39.46 ▲2.50 | 35.20 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.16 ▲0.08 | 643.16 ▼56.29 | 61.99 ▼2.09 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.00 | 92.44 ▼11.12 | 41.68 ▼2.47 |
Was it you? /wp-admin/options-general.php?page=was-it-you | 797 | 2.05 | 26.08 | 24.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'E11_WAS_IT_YOU_PLUGIN_DIR/inc/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/was-it-you/inc/wasityou.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function E11_WasitYou\\add_action() in wp-content/plugins/was-it-you/inc/admin.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/was-it-you/was-it-you.php:58
- > PHP Warning
require_once(E11_WAS_IT_YOU_PLUGIN_DIR/inc/settings.php): failed to open stream: No such file or directory in wp-content/plugins/was-it-you/inc/wasityou.php on line 52
- > PHP Warning
Use of undefined constant E11_WAS_IT_YOU_PLUGIN_DIR - assumed 'E11_WAS_IT_YOU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/was-it-you/inc/wasityou.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function E11_WasitYou\\add_action() in wp-content/plugins/was-it-you/inc/login.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
was-it-you/was-it-you.php Passed 13 tests
This is the main PHP file of "Was it you? Account login notifications" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Was it you? is a plugin that sends you an email if you logged in from a new IP.
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 plugin221 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 96 | 241 | 221 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 2 | 7.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 are no PNG files in this plugin