84% wp-nokia-auth

Code Review | WP Nokia Auth

WordPress plugin WP Nokia Auth scored 84% from 54 tests.

About plugin

  • Plugin page: wp-nokia-auth
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2012
  • Latest release: Apr 21, 2012
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: vicchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 854 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.47 ▼11.09
Dashboard /wp-admin3.37 ▲0.0746.09 ▼0.37
Posts /wp-admin/edit.php3.48 ▲0.1347.07 ▼2.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.69 ▼1.32
Media Library /wp-admin/upload.php3.29 ▲0.0733.90 ▼0.81
WP Nokia Auth /wp-admin/options-general.php?page=wp-nokia-auth/wp-nokia-auth.php3.2729.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.74 ▲0.411.68 ▼0.5240.71 ▼5.53
Dashboard /wp-admin2,210 ▲255.81 ▲0.94103.66 ▼1.0940.12 ▼4.40
Posts /wp-admin/edit.php2,098 ▲62.06 ▲0.0339.19 ▲5.1135.91 ▲3.96
Add New Post /wp-admin/post-new.php1,551 ▲1818.31 ▼5.01629.95 ▼33.0760.07 ▲1.12
Media Library /wp-admin/upload.php1,401 ▲164.20 ▼0.0294.13 ▼8.5141.10 ▼3.26
WP Nokia Auth /wp-admin/options-general.php?page=wp-nokia-auth/wp-nokia-auth.php1,0204.7448.6945.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP4106115388
CSS17049

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 code0.26
Average class complexity12.33
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.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
FileSize - originalSize - compressedSavings
assets/banner-772x250.png249.14KB100.50KB▼ 59.66%
images/error.png0.54KB0.66KB0.00%
images/success.png0.43KB0.49KB0.00%
images/warning.png0.57KB0.67KB0.00%