74% exact-match-disallowed-comment-contact-forms

Code Review | Exact Match Disallowed Comment & Contact Forms

WordPress plugin Exact Match Disallowed Comment & Contact Forms scored74%from 54 tests.

About plugin

  • Plugin page: exact-match-disal...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Oct 2, 2020
  • Number of updates: 14
  • Update frequency: every 1.6 days
  • Top authors: CompleteWebResources (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /1,655 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.72ms] Passed 4 tests

This is a short check of server-side resources used by Exact Match Disallowed Comment & Contact Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.47 ▼0.09
Dashboard /wp-admin3.35 ▲0.0050.85 ▼13.54
Posts /wp-admin/edit.php3.41 ▲0.0448.90 ▼3.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0494.41 ▼17.43
Media Library /wp-admin/upload.php3.28 ▲0.0437.37 ▲5.24

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_blocklist_entries
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Exact Match Disallowed Comment & Contact Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.31 ▲0.021.75 ▼0.1643.20 ▼0.14
Dashboard /wp-admin2,211 ▲375.63 ▲0.1088.03 ▲1.4440.19 ▼9.42
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0434.02 ▼7.8135.53 ▼0.26
Add New Post /wp-admin/post-new.php1,539 ▲1323.60 ▲0.48612.51 ▼22.4449.45 ▼4.78
Media Library /wp-admin/upload.php1,419 ▲194.38 ▲0.1697.07 ▼9.2941.28 ▼1.72

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/exact-match-disallowed-comment-contact-forms/inc/class-table-entries.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/exact-match-disallowed-comment-contact-forms/templates/entries.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: contact form spam, contact form 7, blacklist, formidable, comment spam...

exact-match-disallowed-comment-contact-forms/blocklist-manager.php 92% from 13 tests

The main file in "Exact Match Disallowed Comment & Contact Forms" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("exact-match-disallowed-comment-contact-forms.php" instead of "blocklist-manager.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
Everything looks great! No dangerous files found in this plugin246 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36343246

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.30
Average class complexity16.00
▷ Minimum class complexity9.00
▷ Maximum class complexity23.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods1990.48%
▷ Protected methods14.76%
▷ Private methods14.76%
Functions1
▷ Named functions1100.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 files were detected