WordPress plugin mOTP Spam Blocker scored10%from 54 tests.

About plugin

  • Plugin page: two-factor-authen...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Nov 30, 2014
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: motp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp.php+263
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.20ms] Passed 4 tests

Analyzing server-side resources used by mOTP Spam Blocker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.67 ▼4.23
Dashboard /wp-admin3.31 ▲0.0044.36 ▼3.83
Posts /wp-admin/edit.php3.36 ▲0.0046.72 ▲5.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.73 ▼20.19
Media Library /wp-admin/upload.php3.23 ▲0.0035.60 ▲3.46

Server storage [IO: ▲0.52MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by mOTP Spam Blocker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.951.85 ▲0.1043.57 ▲0.40
Dashboard /wp-admin2,206 ▲145.90 ▲0.98106.70 ▼1.7137.50 ▼0.96
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0339.58 ▼0.4036.47 ▲2.90
Add New Post /wp-admin/post-new.php1,514 ▼2317.89 ▼5.01663.44 ▲80.5462.04 ▲12.95
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0292.33 ▼4.3339.80 ▼1.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp_session.php
    • > /wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp_push.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/two-factor-authentication-with-missed-calls-spam-blocker/motp.php on line 263

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Intro), #2 (Signup screen preview), #3 (Signup verification screen preview), #4 (Comments section), #5 (Misc), #6 (Admin panel)
You can look at the official readme.txt

two-factor-authentication-with-missed-calls-spam-blocker/motp.php 92% from 13 tests

Analyzing the main PHP file in "mOTP Spam Blocker" version 1.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("two-factor-authentication-with-missed-calls-spam-blocker.php" instead of "motp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin615 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312983572
JavaScript18043

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png77.80KB30.15KB▼ 61.24%