84% wp-mobile-authenticator

Code Review | Nova's Mobile Authenticator

WordPress plugin Nova's Mobile Authenticator scored 84% from 54 tests.

About plugin

  • Plugin page: wp-mobile-authent...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Nov 22, 2015
  • Number of updates: 18
  • Update frequency: every 23.1 days
  • Top authors: elrond1369 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 686 total downloads

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.04MB] [CPU: ▼4.03ms] Passed 4 tests

An overview of server-side resources used by Nova's Mobile Authenticator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.34 ▼1.03
Dashboard /wp-admin3.34 ▲0.0443.39 ▼7.78
Posts /wp-admin/edit.php3.39 ▲0.0448.00 ▲0.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.07 ▼8.21
Media Library /wp-admin/upload.php3.26 ▲0.0438.35 ▲1.48

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Nova's Mobile Authenticator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.25 ▼0.131.55 ▼0.3140.67 ▼9.29
Dashboard /wp-admin2,209 ▲244.84 ▼0.0497.62 ▼7.4238.55 ▼3.51
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0239.72 ▲2.5535.18 ▲4.30
Add New Post /wp-admin/post-new.php1,537 ▲323.09 ▲0.05602.58 ▼14.0669.32 ▲0.24
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0799.02 ▼7.5243.66 ▼4.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mobile-authenticator/wp-mobile-auth.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: 2 step verification, security

wp-mobile-authenticator/wp-mobile-auth.php 92% from 13 tests

"Nova's Mobile Authenticator" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-mobile-authenticator.php" instead of "wp-mobile-auth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP119129

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected