10% edublogify-contact-form

Code Review | Edublogify Contact form

WordPress plugin Edublogify Contact form scored 10% from 54 tests.

About plugin

  • Plugin page: edublogify-contac...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 10, 2018
  • Latest release: Mar 17, 2018
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: prashant4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 459 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/edublogify-contact-form/edublogify-contact-form.php+143
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.00MB] [CPU: ▼151.79ms] Passed 4 tests

An overview of server-side resources used by Edublogify Contact form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0122.32 ▼0.76
Dashboard /wp-admin3.07 ▲0.0032.52 ▼11.84
Posts /wp-admin/edit.php3.12 ▲0.0129.93 ▼5.66
Add New Post /wp-admin/post-new.php5.43 ▼0.0169.65 ▼588.88
Media Library /wp-admin/upload.php3.01 ▲0.0130.78 ▲9.00
Shortcode /wp-admin/admin.php?page=ecf-Shortcode2.9819.35
Setting /wp-admin/admin.php?page=ecf-setting2.9819.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, no new options
New tables
edu_ecf_table

Browser metrics Passed 4 tests

Edublogify Contact form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲9715.95 ▲0.294.97 ▲0.0278.72 ▲4.88
Dashboard /wp-admin2,961 ▲656.09 ▼0.08115.83 ▼23.06165.38 ▼3.82
Posts /wp-admin/edit.php2,772 ▲323.23 ▲0.0064.19 ▲0.68136.52 ▼4.48
Add New Post /wp-admin/post-new.php3,840 ▲10519.27 ▲1.37447.97 ▼3.15158.14 ▼8.59
Media Library /wp-admin/upload.php1,782 ▲305.50 ▼0.03140.83 ▲3.27189.30 ▲6.63
Shortcode /wp-admin/admin.php?page=ecf-Shortcode1,0492.4153.1598.19
Setting /wp-admin/admin.php?page=ecf-setting1,0782.3353.07134.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/edublogify-contact-form/edublogify-contact-form.php+165
    Use of undefined constant edu_ecf_table - assumed 'edu_ecf_table' (this will throw an Error in a future version of PHP)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/edublogify-contact-form/edublogify-contact-form.php:61

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

edublogify-contact-form/edublogify-contact-form.php Passed 13 tests

The principal PHP file in "Edublogify Contact form" v. 1.0.1 is loaded by WordPress automatically on each request
75 characters long description:
Edublogify Contact Form for WordPress. A simple way to create Contact form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected206 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13035106
CSS100100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected