74% asset-store-publisher-contact-form

Code Review | Asset Store Customer Support Form

WordPress plugin Asset Store Customer Support Form scored74%from 54 tests.

About plugin

  • Plugin page: asset-store-publi...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 4, 2014
  • Latest release: Feb 11, 2015
  • Number of updates: 6
  • Update frequency: every 21.8 days
  • Top authors: mybadstudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,137 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.81ms] Passed 4 tests

An overview of server-side resources used by Asset Store Customer Support Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.62 ▼0.13
Dashboard /wp-admin2.99 ▼0.3127.12 ▼28.97
Posts /wp-admin/edit.php2.99 ▼0.3626.62 ▼24.76
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.30 ▼74.05
Media Library /wp-admin/upload.php2.99 ▼0.2325.27 ▼11.47

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Asset Store Customer Support Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.23 ▼1.151.65 ▼0.3144.17 ▼0.96
Dashboard /wp-admin2,220 ▲325.81 ▲0.93100.08 ▼10.8738.46 ▼3.16
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0040.21 ▲2.6936.59 ▲2.17
Add New Post /wp-admin/post-new.php1,551 ▲1819.04 ▼4.20670.88 ▼21.3955.91 ▼0.18
Media Library /wp-admin/upload.php1,408 ▲234.21 ▲0.0596.01 ▼4.8843.85 ▼1.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/asset-store-publisher-contact-form/settings.php+8
    Use of undefined constant show_as_contact_config - assumed 'show_as_contact_config' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asset-store-publisher-contact-form/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/asset-store-publisher-contact-form/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === asset-store-publisher-contact-form === )
You can take inspiration from this readme.txt

asset-store-publisher-contact-form/assupport.php 92% from 13 tests

The main PHP script in "Asset Store Customer Support Form" version 1.3.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("asset-store-publisher-contact-form.php" instead of "assupport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin268 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ 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