Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.92ms] Passed 4 tests
Analyzing server-side resources used by WP Nokia Auth
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.47 ▼11.09 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.09 ▼0.37 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.07 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.69 ▼1.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.90 ▼0.81 |
WP Nokia Auth /wp-admin/options-general.php?page=wp-nokia-auth/wp-nokia-auth.php | 3.27 | 29.51 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_nokia_auth_settings |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Nokia Auth: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.74 ▲0.41 | 1.68 ▼0.52 | 40.71 ▼5.53 |
Dashboard /wp-admin | 2,210 ▲25 | 5.81 ▲0.94 | 103.66 ▼1.09 | 40.12 ▼4.40 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.06 ▲0.03 | 39.19 ▲5.11 | 35.91 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 18.31 ▼5.01 | 629.95 ▼33.07 | 60.07 ▲1.12 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.20 ▼0.02 | 94.13 ▼8.51 | 41.10 ▼3.26 |
WP Nokia Auth /wp-admin/options-general.php?page=wp-nokia-auth/wp-nokia-auth.php | 1,020 | 4.74 | 48.69 | 45.08 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-nokia-auth/wp-nokia-auth.php:13
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (WP Nokia Auth Settings And Options: Configured Installation) image not found
wp-nokia-auth/wp-nokia-auth.php Passed 13 tests
"WP Nokia Auth" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
A WordPress plugin to manage your Nokia Location API credentials across all themes and plugins on a site.
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 detected437 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 115 | 388 |
CSS | 1 | 7 | 0 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.24MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 249.14KB | 100.50KB | ▼ 59.66% |
images/error.png | 0.54KB | 0.66KB | 0.00% |
images/success.png | 0.43KB | 0.49KB | 0.00% |
images/warning.png | 0.57KB | 0.67KB | 0.00% |