89% remove-wordfence-2fa

Code Review | Remove WordFence 2FA

WordPress plugin Remove WordFence 2FA scored89%from 54 tests.

About plugin

  • Plugin page: remove-wordfence-2fa
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Oct 10, 2020
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: samtarling (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Remove WordFence 2FA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.16 ▼3.39
Dashboard /wp-admin3.31 ▲0.0144.74 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0046.28 ▼3.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.11 ▼18.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.76 ▲5.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Remove WordFence 2FA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.68 ▼0.681.60 ▼0.1636.59 ▼8.22
Dashboard /wp-admin2,204 ▲275.81 ▼0.0999.23 ▼3.5438.38 ▼2.64
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0539.66 ▼0.6837.10 ▲1.48
Add New Post /wp-admin/post-new.php1,518 ▼1817.48 ▼5.93658.80 ▲64.8055.47 ▲0.74
Media Library /wp-admin/upload.php1,386 ▲14.20 ▲0.0095.22 ▼3.6440.66 ▼1.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: wordfence, 2fa, remove

remove-wordfence-2fa/removewf2fa.php 85% from 13 tests

The principal PHP file in "Remove WordFence 2FA" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-wordfence-2fa.php" instead of "removewf2fa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected311 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown2530249
PHP1132837
JSON10025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin