73% contact-blaster

Code Review | Contact Blaster

WordPress plugin Contact Blaster scored73%from 54 tests.

About plugin

  • Plugin page: contact-blaster
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.7.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Nov 6, 2013
  • Number of updates: 11
  • Update frequency: every 2.0 days
  • Top authors: mbijon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,489 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: ▼1.23MB] [CPU: ▼43.17ms] Passed 4 tests

This is a short check of server-side resources used by Contact Blaster
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.88 ▼32.76
Dashboard /wp-admin2.78 ▼0.5215.37 ▼31.72
Posts /wp-admin/edit.php2.78 ▼0.5715.71 ▼30.44
Add New Post /wp-admin/post-new.php2.78 ▼3.1117.57 ▼77.77
Media Library /wp-admin/upload.php2.78 ▼0.4514.98 ▼15.42

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Contact Blaster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.71 ▼0.696.02 ▲4.0336.58 ▼21.22
Dashboard /wp-admin2,209 ▲185.85 ▲0.95101.65 ▼5.1142.18 ▼9.38
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.1733.70 ▼5.7137.78 ▲4.84
Add New Post /wp-admin/post-new.php1,530 ▲1623.12 ▲5.50639.29 ▼11.4651.73 ▼2.19
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0295.75 ▼7.8840.25 ▼2.30

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
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/contact-blaster/contact-blaster.php+79
    Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/contact-blaster/contact-blaster.php:37

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === contact-blaster === )
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

contact-blaster/contact-blaster.php 85% from 13 tests

The principal PHP file in "Contact Blaster" v. 2.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 206 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected86 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP3547453
Sass37418
JavaScript213915
CSS3040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods342.86%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin