84% dovedi

Code Review | Dovedi

WordPress plugin Dovedi scored84%from 54 tests.

About plugin

  • Plugin page: dovedi
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2016
  • Latest release: Mar 28, 2017
  • Number of updates: 3
  • Update frequency: every 174.7 days
  • Top authors: ericmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,427 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.01ms] Passed 4 tests

Server-side resources used by Dovedi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.64 ▲2.12
Dashboard /wp-admin3.32 ▲0.0242.31 ▼3.68
Posts /wp-admin/edit.php3.37 ▲0.0144.20 ▲0.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.21 ▼10.48
Media Library /wp-admin/upload.php3.24 ▲0.0133.19 ▲1.17

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Dovedi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.88 ▲0.521.79 ▲0.0742.71 ▲1.85
Dashboard /wp-admin2,215 ▲235.82 ▲0.8498.59 ▼9.7041.81 ▲0.34
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0234.29 ▼0.8335.57 ▲1.31
Add New Post /wp-admin/post-new.php1,545 ▲3123.39 ▲5.84663.46 ▲17.2053.65 ▼2.69
Media Library /wp-admin/upload.php1,400 ▲94.21 ▲0.03106.30 ▲8.9445.67 ▲2.69

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dovedi/dovedi.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: 2fa, authentication, login

dovedi/dovedi.php Passed 13 tests

This is the main PHP file of "Dovedi" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Time-based One Time Password authentication for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin353 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP298256353

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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
Namespaces1
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%
Functions30
▷ Named functions2790.00%
▷ Anonymous functions310.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin