74% wp-fingerprint

Code Review | WP Fingerprint

WordPress plugin WP Fingerprint scored74%from 54 tests.

About plugin

  • Plugin page: wp-fingerprint
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2018
  • Latest release: Jun 8, 2022
  • Number of updates: 16
  • Update frequency: every 97.9 days
  • Top authors: tnash (68.75%)kayleighthorpe (37.5%)

Code review

54 tests

User reviews

2 reviews

Install metrics

9,000+ active /23,007 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Fingerprint
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.92 ▲5.53
Dashboard /wp-admin3.32 ▲0.0246.64 ▼13.55
Posts /wp-admin/edit.php3.37 ▲0.0249.34 ▲6.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.39 ▲9.85
Media Library /wp-admin/upload.php3.25 ▲0.0236.76 ▲4.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 2 new tables, 10 new options
New tables
wp_wpfingerprint_checksums
wp_wpfingerprint_diffs
New WordPress options
widget_theysaidso_widget
wpfingerprint_mode
wpfingerprint_last_run
wpfingerprint_fails
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
wpfingerprint_db_version
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WP Fingerprint: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.41 ▲0.041.68 ▼0.3439.89 ▼2.18
Dashboard /wp-admin2,227 ▲365.84 ▼0.04110.75 ▼1.3643.48 ▼4.77
Posts /wp-admin/edit.php2,110 ▲182.00 ▲0.0240.15 ▲0.7534.75 ▲0.48
Add New Post /wp-admin/post-new.php1,557 ▲4318.36 ▲1.03578.70 ▼59.9863.23 ▲9.49
Media Library /wp-admin/upload.php1,412 ▲244.25 ▲0.0398.14 ▲5.3140.93 ▲0.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wpfingerprint_checksums
    • wp_wpfingerprint_diffs
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • wpfingerprint_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: quickglance in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-fingerprint/fingerprint-command.php:2
    • > PHP Notice
      Undefined variable: last_check in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-fingerprint/template/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WPFingerprint_Settings_Table' not found in wp-content/plugins/wp-fingerprint/template/display-plugins.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-fingerprint/wp-fingerprint.php:21
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 8
    • > PHP Notice
      Undefined variable: quickglance in wp-content/plugins/wp-fingerprint/template/display-plugins.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: plugins, checksums, security

wp-fingerprint/wp-fingerprint.php Passed 13 tests

The main PHP script in "WP Fingerprint" version 2.1.2 is automatically included on every request by WordPress
137 characters long description:
WP Fingerprint adds an additional layer of security to your WordPress website, working to check your plugins for signs of hack or exploit

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,463 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP161491071,463

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods103
▷ Static methods43.88%
▷ Public methods9996.12%
▷ Protected methods00.00%
▷ Private methods43.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin