78% apply-online

Code Review | ApplyOnline - Application Form Builder and Manager

WordPress plugin ApplyOnline - Application Form Builder and Manager scored78%from 54 tests.

About plugin

  • Plugin page: apply-online
  • Plugin version: 2.5.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Oct 23, 2023
  • Number of updates: 200
  • Update frequency: every 14.4 days
  • Top authors: farhan.noor (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

5,000+ active /176,307 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.22MB] [CPU: ▲5.58ms] Passed 4 tests

Server-side resources used by ApplyOnline - Application Form Builder and Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.65 ▲1.1948.96 ▲13.07
Dashboard /wp-admin4.54 ▲1.2056.10 ▼7.10
Posts /wp-admin/edit.php4.61 ▲1.2552.12 ▲6.29
Add New Post /wp-admin/post-new.php7.15 ▲1.27102.38 ▲10.05
Media Library /wp-admin/upload.php4.46 ▲1.2347.34 ▲13.32
Categories Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_category&post_type=aol_ad4.5947.44
Create Ad /wp-admin/post-new.php?post_type=aol_ad4.6266.70
Settings /wp-admin/admin.php?page=aol-settings4.5747.74
Types Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_type&post_type=aol_ad4.5946.91
Locations Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_location&post_type=aol_ad4.6151.18
Applications /wp-admin/edit.php?post_type=aol_application4.5144.89
Ads /wp-admin/edit.php?post_type=aol_ad4.5145.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 29 new options
New WordPress options
aol_required_fields_notice
aol_success_mail_message
aol_ad_type_children
aol_form_templates
aol_dismissed_notices
db_upgraded
aol_custom_statuses
aol_app_statuses
aol_version
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by ApplyOnline - Application Form Builder and Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲25013.61 ▼0.7612.02 ▲10.4643.53 ▲3.90
Dashboard /wp-admin2,297 ▲1165.67 ▼0.0586.35 ▼25.5237.84 ▼7.02
Posts /wp-admin/edit.php2,207 ▲1072.30 ▲0.3236.60 ▲1.3636.57 ▼1.84
Add New Post /wp-admin/post-new.php1,612 ▲8423.43 ▲0.33603.71 ▼59.7956.68 ▲5.81
Media Library /wp-admin/upload.php1,512 ▲1094.51 ▲0.3297.90 ▼1.2241.82 ▼5.39
Categories Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_category&post_type=aol_ad1,6012.2432.9236.71
Create Ad /wp-admin/post-new.php?post_type=aol_ad3,5008.17185.8570.92
Settings /wp-admin/admin.php?page=aol-settings2,7392.6953.5946.72
Types Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_type&post_type=aol_ad1,7512.2432.1636.75
Locations Filter /wp-admin/edit-tags.php?taxonomy=aol_ad_location&post_type=aol_ad2,1732.2433.3035.49
Applications /wp-admin/edit.php?post_type=aol_application1,2802.7344.3631.01
Ads /wp-admin/edit.php?post_type=aol_ad1,2202.2435.3630.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 29 options
    • aol_recipients_emails
    • aol_version
    • aol_app_statuses
    • aol_ad_filters
    • aol_custom_statuses
    • aol_ad_author_notification
    • aol_application_success_alert
    • widget_recent-posts
    • aol_dismissed_notices
    • aol_form_templates
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/apply-online/public/partials/applyonline-public-display.php
    • > /wp-content/plugins/apply-online/admin/partials/applyonline-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/apply-online/includes/applyonline-functions.php:346

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #9 (Admin - General Settings)
  • Tags: Please delete some tags, you are using 53 tag instead of maximum 10
The official readme.txt is a good inspiration

apply-online/apply-online.php 92% from 13 tests

The primary PHP file in "ApplyOnline - Application Form Builder and Manager" version 2.5.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,854 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP146291,3323,843
CSS92194121,730
PO File36517911,663
JavaScript72244461,605
XML10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.88
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods135
▷ Static methods53.70%
▷ Public methods12088.89%
▷ Protected methods00.00%
▷ Private methods1511.11%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin