62% fiddlemail

Code Review | Fiddlemail

WordPress plugin Fiddlemail scored 62% from 54 tests.

About plugin

  • Plugin page: fiddlemail
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2018
  • Latest release: Sep 14, 2019
  • Number of updates: 17
  • Update frequency: every 35.2 days
  • Top authors: fiddlemail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,273 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
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.52ms] Passed 4 tests

Analyzing server-side resources used by Fiddlemail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.98 ▲5.39
Dashboard /wp-admin3.51 ▲0.2045.57 ▼4.00
Posts /wp-admin/edit.php3.62 ▲0.2647.41 ▲0.65
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.97 ▼15.13
Media Library /wp-admin/upload.php3.43 ▲0.2036.77 ▲4.41
Fiddlemail /wp-admin/options-general.php?page=fiddlemail-settings3.3729.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: 2 new tables, 15 new options
New tables
wp_fiddlemail_wblist
wp_fiddlemail_log
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
fm_api_send_mail
fm_api_block_score
fm_comment_handling
fm_use_spamhaus
fm_db_version
fm_filter
fm_api_key
...

Browser metrics Passed 4 tests

Fiddlemail: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.23 ▼1.151.70 ▼0.1242.50 ▲0.63
Dashboard /wp-admin2,220 ▲325.97 ▲1.07106.10 ▼8.2743.34 ▲2.89
Posts /wp-admin/edit.php2,102 ▲132.03 ▲0.0642.30 ▲0.9135.49 ▼2.52
Add New Post /wp-admin/post-new.php1,526 ▼717.42 ▼5.77675.12 ▲75.9847.07 ▲1.22
Media Library /wp-admin/upload.php1,402 ▲144.22 ▲0.0194.85 ▼7.9440.90 ▼2.53
Fiddlemail /wp-admin/options-general.php?page=fiddlemail-settings8362.0527.3232.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_fiddlemail_wblist
    • wp_fiddlemail_log
  • The uninstall procedure has failed, leaving 15 options in the database
    • db_upgraded
    • fm_use_uribl
    • fm_comment_handling
    • fm_api_key_score
    • fm_api_send_mail
    • fm_api_key
    • widget_recent-posts
    • widget_theysaidso_widget
    • fm_use_spamhaus
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fiddlemail-settings
    • > Notice in wp-content/plugins/fiddlemail/includes/Fiddlemail.inc.php+568
    Undefined index: tab

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fiddlemail/fiddlemail.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/RR/SOA.php:85
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/RR/A.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_Socket' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/Socket/Sockets.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_Socket' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/Socket/Streams.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_Packet' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/Packet/Response.php:65
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/Resolver.php:63
    • > PHP Fatal error
      Uncaught Error: Class 'Net_DNS2_Packet' not found in wp-content/plugins/fiddlemail/includes/netdns2/Net/DNS2/Packet/Request.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

fiddlemail/fiddlemail.php Passed 13 tests

The principal PHP file in "Fiddlemail" v. 1.1.0 is loaded by WordPress automatically on each request
86 characters long description:
Identify and block disposable fake email addresses to prevent junk users and comments.

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 plugin2,895 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP199193,1082,870
Markdown115025

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.67
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes422.22%
▷ Concrete classes1477.78%
▷ Final classes00.00%
Methods111
▷ Static methods4136.94%
▷ Public methods9081.08%
▷ Protected methods1614.41%
▷ Private methods54.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants111
▷ Global constants98.11%
▷ Class constants10291.89%
▷ Public constants102100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected