83% atlas-discuss-quote-form

Code Review | Atlas Discuss Quote Form Demo

WordPress plugin Atlas Discuss Quote Form Demo scored83%from 54 tests.

About plugin

  • Plugin page: atlas-discuss-quo...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Jul 6, 2017
  • Number of updates: 24
  • Update frequency: every 11.3 days
  • Top authors: atlassoftwebwp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.15ms] Passed 4 tests

Analyzing server-side resources used by Atlas Discuss Quote Form Demo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.38 ▼8.92
Dashboard /wp-admin3.34 ▲0.0449.04 ▼0.59
Posts /wp-admin/edit.php3.39 ▲0.0446.03 ▼5.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.48 ▼9.38
Media Library /wp-admin/upload.php3.26 ▲0.0436.55 ▼1.07
Add New /wp-admin/post-new.php?post_type=atlas_discuss_form3.4051.07
All Discuss Forms /wp-admin/edit.php?post_type=atlas_discuss_form3.3138.26

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Atlas Discuss Quote Form Demo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19414.58 ▲0.2325.78 ▲24.0342.61 ▼2.02
Dashboard /wp-admin2,219 ▲395.53 ▼0.1490.69 ▼3.3338.70 ▲0.07
Posts /wp-admin/edit.php2,124 ▲242.04 ▲0.0832.62 ▼7.3536.23 ▼1.24
Add New Post /wp-admin/post-new.php1,555 ▲1818.09 ▼0.43648.28 ▲23.0567.84 ▲3.80
Media Library /wp-admin/upload.php1,424 ▲274.20 ▼0.0395.76 ▼14.2243.27 ▼1.81
Add New /wp-admin/post-new.php?post_type=atlas_discuss_form2,3567.56186.5265.66
All Discuss Forms /wp-admin/edit.php?post_type=atlas_discuss_form1,1051.9434.3628.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=atlas_discuss_form
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/atlas-discuss-quote-form/admin/js/repeatable.js?ver=6.3.1:129:40)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=atlas_discuss_form
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: form, atlas form, atlas discuss quote form, quote form, contact form...

atlas-discuss-quote-form/index.php 77% from 13 tests

The main PHP script in "Atlas Discuss Quote Form Demo" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("atlas-discuss-quote-form.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin9,395 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,3161,1394,920
CSS41,1721,2282,790
PHP7971491,000
SVG100685

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity23.00
▷ Minimum class complexity5.00
▷ Maximum class complexity41.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin